Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
|
Fonctions for isotropic size map computation. More...
#include "libmmgs_private.h"
#include "libmmgs.h"
#include <math.h>
#include "mmgsexterns_private.h"
#include "mmgexterns_private.h"
Go to the source code of this file.
Macros | |
#define | MAXLEN 1.0e+3 |
Functions | |
static int | MMGS_sum_reqEdgeLengthsAtPoint (MMG5_pMesh mesh, MMG5_pSol met, MMG5_Hash *hash, MMG5_pTria pt, int8_t i) |
int | MMGS_set_metricAtPointsOnReqEdges (MMG5_pMesh mesh, MMG5_pSol met, int8_t ismet) |
int | MMGS_defsiz_iso (MMG5_pMesh mesh, MMG5_pSol met) |
Fonctions for isotropic size map computation.
Definition in file isosiz_s.c.
#define MAXLEN 1.0e+3 |
Definition at line 42 of file isosiz_s.c.
int MMGS_defsiz_iso | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met | ||
) |
mesh | pointer to the mesh |
met | pointer to the metric |
Define isotropic size map at all vertices of the mesh, associated with geometric approx ; by convention, p0->h stores desired length at point p0
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 hausdorff distance
Definition at line 142 of file isosiz_s.c.
int MMGS_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 trequired adges 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 90 of file isosiz_s.c.
|
inlinestatic |
mesh | pointer to the mesh structure. |
met | pointer to the metric structure. |
hash | edge hashtable. |
pt | tria to process. |
i | index of the edge of the tria pt that we process. |
If the edge i of the tria pt is seen for the first time, compute its euclidean length, add this length to the metric of the edge extremities and increment the count of times we have processed this extremities.
Definition at line 59 of file isosiz_s.c.