83 for ( k=1; k<=
mesh->
nt; k++ ) {
94 for ( k=1; k<=
mesh->
nt; k++ ) {
96 if ( !
MG_EOK(pt) )
continue;
100 for ( i=0; i<3; i++ ) {
116 if ( !MMG5_compute_meanMetricAtMarkedPoints (
mesh,met ) ) {
137 double t1[2],t2[2],b1[2],b2[2],gpp1[2],gpp2[2],pv,M1,M2;
138 double ps1,ps2,ux,uy,ll,li,lm,hmax,hausd,hmin,lhmax,lhausd;
139 MMG5_int k,ip,ip1,ip2;
151 for (k=1; k<=
mesh->
np; k++) {
188 for ( k=1; k<=
mesh->
np; k++ ) {
198 for ( k=1; k<=
mesh->
nt; k++ ) {
200 if ( !
MG_EOK(pt) )
continue;
202 for ( i=0; i<3; i++ ) {
214 if ( p1->
flag>1 && p2->
flag>1 )
continue;
232 ux = p2->
c[0] - p1->
c[0];
233 uy = p2->
c[1] - p1->
c[1];
260 ps1 = ux*t1[0] + uy*t1[1];
264 ps2 = ux*t2[0]+uy*t2[1];
274 gpp1[0] = 6.0*(p1->
c[0] - 2.0*b1[0] + b2[0]);
275 gpp1[1] = 6.0*(p1->
c[1] - 2.0*b1[1] + b2[1]);
278 pv = gpp1[0]*t1[1] - gpp1[1]*t1[0];
282 gpp2[0] = 6.0*(p2->
c[0] - 2.0*b2[0] + b1[0]);
283 gpp2[1] = 6.0*(p2->
c[1] - 2.0*b2[1] + b1[1]);
286 pv = gpp2[0]*t2[1] - gpp2[1]*t2[0];
293 lm = 8.0*lhausd / M1;
294 lm =
MG_MIN(lhmax,sqrt(lm));
297 if ( p1->
flag < 3 ) {
300 if ( p2->
flag < 3 ) {
311 for (k=1; k<=
mesh->
nt; k++) {
313 if ( !
MG_EOK(pt) )
continue;
319 for (i=0; i<3; i++) {
330 for (k=1; k<=
mesh->
np; k++) {
332 if ( (!
MG_VOK(p0)) || p0->
flag == 3 )
continue;
int MMG2D_Set_solSize(MMG5_pMesh mesh, MMG5_pSol sol, int typEntity, MMG5_int np, int typSol)
Set the size and type of a solution field.
int MMG5_sum_reqEdgeLengthsAtPoint(MMG5_pMesh mesh, MMG5_pSol met, MMG5_int ip0, MMG5_int ip1)
int MMG5_reset_metricAtReqEdges_surf(MMG5_pMesh mesh, MMG5_pSol met, int8_t ismet)
int MMG5_defsiz_startingMessage(MMG5_pMesh mesh, MMG5_pSol met, const char *funcname)
int MMG2D_sum_reqEdgeLengthsAtPoint(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTria pt, int8_t i)
int MMG2D_defsiz_iso(MMG5_pMesh mesh, MMG5_pSol met)
int MMG2D_set_metricAtPointsOnReqEdges(MMG5_pMesh mesh, MMG5_pSol met, int8_t ismet)
API headers and documentation for the mmg2d library.
static const uint8_t MMG5_iprv2[3]
static const uint8_t MMG5_inxt2[6]
Local parameters for a specific entity and reference.
Structure to store vertices of an MMG mesh.
Structure to store triangles of a MMG mesh.