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

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"
Include dependency graph for isosiz_s.c:

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)
 

Detailed Description

Fonctions for isotropic size map computation.

Author
Charles Dapogny (UPMC)
Cécile Dobrzynski (Bx INP/Inria/UBordeaux)
Pascal Frey (UPMC)
Algiane Froehly (Inria/UBordeaux)
Version
5
Todo:
doxygen documentation.

Definition in file isosiz_s.c.

Macro Definition Documentation

◆ MAXLEN

#define MAXLEN   1.0e+3

Definition at line 42 of file isosiz_s.c.

Function Documentation

◆ MMGS_defsiz_iso()

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

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.

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

◆ MMGS_set_metricAtPointsOnReqEdges()

int MMGS_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 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.

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

◆ MMGS_sum_reqEdgeLengthsAtPoint()

static int MMGS_sum_reqEdgeLengthsAtPoint ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_Hash hash,
MMG5_pTria  pt,
int8_t  i 
)
inlinestatic
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
hashedge hashtable.
pttria to process.
iindex of the edge of the tria pt that we process.
Returns
1 if success, 0 if fail.

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.

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