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

Fonctions for isotropic size map computation. More...

#include "mmgcommon_private.h"
Include dependency graph for isosiz.c:

Go to the source code of this file.

Functions

double MMG5_surftri_iso (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTria ptt)
 
int MMG5_defsiz_startingMessage (MMG5_pMesh mesh, MMG5_pSol met, const char *funcname)
 
void MMG5_gradation_info (MMG5_pMesh mesh)
 
int MMG5_sum_reqEdgeLengthsAtPoint (MMG5_pMesh mesh, MMG5_pSol met, MMG5_int ip0, MMG5_int ip1)
 
int MMG5_compute_meanMetricAtMarkedPoints_iso (MMG5_pMesh mesh, MMG5_pSol met)
 
int MMG5_reset_metricAtReqEdges_surf (MMG5_pMesh mesh, MMG5_pSol met, int8_t ismet)
 
void MMG5_mark_pointsOnReqEdge_fromTria (MMG5_pMesh mesh)
 
int MMG5_gradsiz_iso (MMG5_pMesh mesh, MMG5_pSol met)
 
int MMG5_gradsizreq_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

Definition in file isosiz.c.

Function Documentation

◆ MMG5_compute_meanMetricAtMarkedPoints_iso()

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

Compute the mean metric at mesh points with a non-nul s field. At the beginning, the metric of a given point contains the sum of n metrics and the s field of the point the number of metrics summed in the point. Set the flag of the processed points to 3.

Definition at line 167 of file isosiz.c.

Here is the caller graph for this function:

◆ MMG5_defsiz_startingMessage()

int MMG5_defsiz_startingMessage ( MMG5_pMesh  mesh,
MMG5_pSol  met,
const char *  funcname 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
funcnamename of the calling function
Returns
1 if success, 0 if fail.

Print that we enter in the defsiz function in high verbosity level and check the hmax value.

Definition at line 77 of file isosiz.c.

Here is the caller graph for this function:

◆ MMG5_gradation_info()

void MMG5_gradation_info ( MMG5_pMesh  mesh)
Parameters
meshpointer toward the mesh structure.

Print gradation values (depending on the verbosity).

Definition at line 96 of file isosiz.c.

Here is the caller graph for this function:

◆ MMG5_gradsiz_iso()

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

Isotropic mesh gradation routine. The points belonging to a required edge are treated in gradsizreq_iso.

Definition at line 278 of file isosiz.c.

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

◆ MMG5_gradsizreq_iso()

int MMG5_gradsizreq_iso ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
Parameters
meshpointer toward the mesh
metpointer toward the metric
Returns
the number of updated metrics.

Isotropic mesh gradation routine. The points belonging to a required entity are treated in gradsizreq_iso.

Mark the edges belonging to a required entity

Update the sizes and mark the treated points

Definition at line 372 of file isosiz.c.

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

◆ MMG5_mark_pointsOnReqEdge_fromTria()

void MMG5_mark_pointsOnReqEdge_fromTria ( MMG5_pMesh  mesh)
Parameters
meshpointer toward the mesh structure.

Set the s field of the points that belongs to a required edge to 1, set it to 0 otherwise.

Definition at line 243 of file isosiz.c.

Here is the caller graph for this function:

◆ MMG5_reset_metricAtReqEdges_surf()

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

For a triangle mesh, process the triangles and set to 0 the metrics at points that are at the extremities of a required edge.

Definition at line 204 of file isosiz.c.

Here is the caller graph for this function:

◆ MMG5_sum_reqEdgeLengthsAtPoint()

int MMG5_sum_reqEdgeLengthsAtPoint ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_int  ip0,
MMG5_int  ip1 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
ip0index of the first edge extremity
ip1index of the second edge extremity
Returns
1 if success, 0 if fail.

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

Definition at line 129 of file isosiz.c.

Here is the caller graph for this function:

◆ MMG5_surftri_iso()

double MMG5_surftri_iso ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_pTria  ptt 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the meric structure.
pttpointer toward the triangle structure.
Returns
The computed area.

Compute the area of the surface triangle ptt with respect to the isotropic metric met.

Definition at line 42 of file isosiz.c.