Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
Functions
isosiz_2d.c File Reference

Interpolation of metrics. More...

#include "libmmg2d_private.h"
#include "libmmg2d.h"
#include "mmg2dexterns_private.h"
#include "mmgexterns_private.h"
Include dependency graph for isosiz_2d.c:

Go to the source code of this file.

Functions

int MMG2D_sum_reqEdgeLengthsAtPoint (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTria pt, int8_t i)
 
int MMG2D_set_metricAtPointsOnReqEdges (MMG5_pMesh mesh, MMG5_pSol met, int8_t ismet)
 
int MMG2D_defsiz_iso (MMG5_pMesh mesh, MMG5_pSol met)
 

Detailed Description

Interpolation of metrics.

Author
Charles Dapogny (UPMC)
Cécile Dobrzynski (Bx INP/Inria/UBordeaux)
Pascal Frey (UPMC)
Algiane Froehly (Inria/UBordeaux)
Version
5
Date
01 2014

Definition in file isosiz_2d.c.

Function Documentation

◆ MMG2D_defsiz_iso()

int MMG2D_defsiz_iso ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
Parameters
meshpointer toward the mesh
metpointer toward the metric
Returns
0 if fail, 1 otherwise

New version for the definition of a size map; takes into account the curvature of the external and internal curves present in the mesh

1) Size at internal points

Step 1: Set metric at points belonging to a required edge: compute the metric as the mean of the length of the required eges passing through the point

Step 2: size at non required internal points

Step 3: Minimum size feature imposed by the boundary edges

If local parameters are provided: size truncation on the entire mesh

Definition at line 133 of file isosiz_2d.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2D_set_metricAtPointsOnReqEdges()

int MMG2D_set_metricAtPointsOnReqEdges ( MMG5_pMesh  mesh,
MMG5_pSol  met,
int8_t  ismet 
)
Parameters
meshpointer toward the mesh
metpointer toward the metric
ismet1 if user provided metric
Returns
0 if fail, 1 otherwise

Compute the metric at points on required edges as the mean of the lengths of the required eges to which belongs the point. The processeed points are marked with flag 3.

Definition at line 77 of file isosiz_2d.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2D_sum_reqEdgeLengthsAtPoint()

int MMG2D_sum_reqEdgeLengthsAtPoint ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_pTria  pt,
int8_t  i 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
pttetra to process.
iindex of the edge of the tetra pt that we process.
Returns
1 if success, 0 if fail.

Compute the euclidean length of the edge i of the tria pt, add this length to the metric of the edge extremities and increment the count of times we have processed this extremities.

Definition at line 52 of file isosiz_2d.c.

Here is the call graph for this function:
Here is the caller graph for this function: