54 MMG5_int *adja,k,iel,base;
56 int8_t i,i1,i2,ia,iq,voy;
63 if ( !
MG_EOK(pt) )
return 0;
73 list[ilist] = 3*k + i;
90 while ( k && k != start );
113 list[ilist] = 3*k + i;
146 if ( ppt->
s == base )
return 0;
148 if ( ppt->
s == base )
return 0;
155 while ( k && k != start );
156 if( k > 0 )
return ilist;
168 if ( ppt->
s == base )
return 0;
170 if ( ppt->
s == base )
return 0;
201int bouletrid(
MMG5_pMesh mesh,MMG5_int start,MMG5_int ip,
int *il1,MMG5_int *l1,
int *il2,MMG5_int *l2,MMG5_int *ip0,MMG5_int *ip1) {
204 MMG5_int idp,k,kold,*adja,iel,*list1,*list2,aux;
206 uint8_t i,iold,i1,i2,ipn;
207 double *n1,*n2,nt[3],ps1,ps2;
210 if ( !
MG_EOK(pt) )
return 0;
221 ps1 = n1[0]*nt[0] + n1[1]*nt[1] + n1[2]*nt[2];
222 ps2 = n2[0]*nt[0] + n2[1]*nt[1] + n2[2]*nt[2];
224 if ( fabs(ps1) < fabs(ps2) ) {
255 while ( k && !(pt->
tag[i1] &
MG_GEO) && k != start );
268 list1[(*ilist1)] = 3*k+i;
280 for (k=0; k<(*ilist1) / 2;k++) {
282 list1[k] = list1[*ilist1-1-k];
283 list1[*ilist1-1-k] = aux;
287 if ( !iel )
return 1;
296 list2[*ilist2] = 3*k+i;
int boulechknm(MMG5_pMesh mesh, MMG5_int start, int ip, MMG5_int *list)
int bouletrid(MMG5_pMesh mesh, MMG5_int start, MMG5_int ip, int *il1, MMG5_int *l1, int *il2, MMG5_int *l2, MMG5_int *ip0, MMG5_int *ip1)
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 vertices of an MMG mesh.
Structure to store triangles of a MMG mesh.