59 if ( !
MG_EOK(pt) )
return 0;
72 list[ilist] = pt->
v[i2];
74 adj = &adja[3*(k-1)+1];
81 while ( k && k != start );
82 if ( k > 0 )
return ilist;
93 list[ilist] = pt->
v[i1];
95 adj = &adja[3*(k-1)+1];
126 if ( !
MG_EOK(pt) )
return 0;
127 nn[0] = nn[1] = nn[2] = 0.0;
140 nn[0] += n[0]; nn[1] += n[1]; nn[2] += n[2];
146 adja = &adjt[3*(k-1)+1];
151 while ( k && k != start );
161 adja = &adjt[3*(k-1)+1];
170 nn[0] += n[0]; nn[1] += n[1]; nn[2] += n[2];
172 while ( k && k != start );
176 dd = nn[0]*nn[0] + nn[1]*nn[1] + nn[2]*nn[2];
207 if ( !
MG_EOK(pt) )
return 0;
224 adja = &adjt[3*(k-1)+1];
229 while ( k && k != start );
243 adja = &adjt[3*(k-1)+1];
257 tt[0] = p2->
c[0] - p1->
c[0];
258 tt[1] = p2->
c[1] - p1->
c[1];
259 tt[2] = p2->
c[2] - p1->
c[2];
260 dd = tt[0]*tt[0] + tt[1]*tt[1] + tt[2]*tt[2];
288 MMG5_int *list,MMG5_int *listref,
int *ng,
int *nr,
int lmax) {
295 if ( !
MG_EOK(pt) )
return 0;
310 list[ns] = pt->
v[i2];
311 listref[ns] = pt->
edg[i1];
312 if ( ns > lmax-2 )
return -ns;
314 adja = &adjt[3*(k-1)+1];
320 while ( k && k != start );
336 list[ns] = pt->
v[i1];
337 listref[ns] = pt->
edg[i2];
338 if ( ns > lmax-2 )
return -ns;
340 adja = &adjt[3*(k-1)+1];
345 while ( k && k != start );
376 list[ilist] = 3*k + i;
385 while ( k && k != start );
386 if ( k > 0 )
return ilist;
412 list[ilist] = 3*k + i;
int MMG5_boulec(MMG5_pMesh mesh, MMG5_int *adjt, MMG5_int start, int ip, double *tt)
int MMG5_boulet(MMG5_pMesh mesh, MMG5_int start, int ip, MMG5_int *list, int8_t s, int8_t *opn)
int MMG5_boulep(MMG5_pMesh mesh, MMG5_int start, int ip, MMG5_int *adja, MMG5_int *list, MMG5_int *tlist)
int MMG5_bouler(MMG5_pMesh mesh, MMG5_int *adjt, MMG5_int start, int ip, MMG5_int *list, MMG5_int *listref, int *ng, int *nr, int lmax)
int MMG5_boulen(MMG5_pMesh mesh, MMG5_int *adjt, MMG5_int start, int ip, double *nn)
static const uint8_t MMG5_iprv2[3]
static const uint8_t MMG5_inxt2[6]
int MMG5_nortri(MMG5_pMesh mesh, MMG5_pTria pt, double *n)
Structure to store input parameters of the job.
Structure to store vertices of an MMG mesh.
Structure to store triangles of a MMG mesh.