Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
|
Interpolation of metrics. More...
#include "libmmg2d_private.h"
#include "libmmg2d.h"
#include "mmg2dexterns_private.h"
#include "mmgexterns_private.h"
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) |
Interpolation of metrics.
Definition in file isosiz_2d.c.
int MMG2D_defsiz_iso | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met | ||
) |
mesh | pointer to the mesh |
met | pointer to the metric |
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.
int MMG2D_set_metricAtPointsOnReqEdges | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
int8_t | ismet | ||
) |
mesh | pointer to the mesh |
met | pointer to the metric |
ismet | 1 if user provided metric |
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.
int MMG2D_sum_reqEdgeLengthsAtPoint | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
MMG5_pTria | pt, | ||
int8_t | i | ||
) |
mesh | pointer to the mesh structure. |
met | pointer to the metric structure. |
pt | tetra to process. |
i | index of the edge of the tetra pt that we process. |
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.