43 double dd,ux,uy,n1[2],n2[2],*c1,*c2,*c3,pl1,pl2;
53 dd = 1.0 / sqrt(ux*ux + uy*uy);
58 pl1 = 0.5*(n1[0]*(c3[0]+c1[0])+ n1[1]*(c3[1]+c1[1])) ;
63 dd = 1.0 / sqrt(ux*ux + uy*uy);
66 pl2 = 0.5*(n2[0]*(c3[0]+c2[0])+ n2[1]*(c3[1]+c2[1]));
69 dd = n1[0]*n2[1] - n2[0]*n1[1] ;
70 if(fabs((dd))<1e-12)
return 0;
73 cc1 = n2[1]*pl1 - n1[1]*pl2;
74 cc2 = -n2[0]*pl1 + n1[0]*pl2;
80 *rad = (c[0] - c1[0]) * (c[0] - c1[0]) \
81 + (c[1] - c1[1]) * (c[1] - c1[1]);
int MMG2D_cenrad_iso(MMG5_pMesh mesh, double *ct, double *c, double *rad)