mmg3d
quality_3d.c File Reference

Functions to compute elements quality and edge lengths. More...

Include dependency graph for quality_3d.c:

Functions

int _MMG3D_tetraQual (MMG5_pMesh mesh, MMG5_pSol met, char metRidTyp)
 
double _MMG5_caltet33_ani (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTetra pt)
 
int _MMG3D_prilen (MMG5_pMesh mesh, MMG5_pSol met, char metRidTyp)
 
static int _MMG3D_printquaLES (MMG5_pMesh mesh, MMG5_pSol met)
 
int _MMG3D_inqua (MMG5_pMesh mesh, MMG5_pSol met)
 
int _MMG3D_outqua (MMG5_pMesh mesh, MMG5_pSol met)
 
int _MMG5_countelt (MMG5_pMesh mesh, MMG5_pSol sol, double *weightelt, long *npcible)
 

Variables

char ddb
 

Detailed Description

Functions to compute elements quality and edge lengths.

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

Function Documentation

◆ _MMG3D_inqua()

int _MMG3D_inqua ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
Returns
0 if the worst element has a nul quality, 1 otherwise.

Print histogram of mesh qualities for classic storage of metric at ridges.

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

◆ _MMG3D_outqua()

int _MMG3D_outqua ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
Returns
0 if the worst element has a nul quality, 1 otherwise.

Print histogram of mesh qualities for special storage of metric at ridges.

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

◆ _MMG3D_prilen()

int _MMG3D_prilen ( MMG5_pMesh  mesh,
MMG5_pSol  met,
char  metRidTyp 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
metRidTypType of storage of ridges metrics: 0 for classic storage, 1 for special storage.
Returns
0 if fail, 1 otherwise.

Compute sizes of edges of the mesh, and displays histo.

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

◆ _MMG3D_printquaLES()

static int _MMG3D_printquaLES ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
static
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
Returns
0 if the worst element has a nul quality, 1 otherwise.

Print histogram of LES mesh qualities for classic storage of metric at ridges.

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

◆ _MMG3D_tetraQual()

int _MMG3D_tetraQual ( MMG5_pMesh  mesh,
MMG5_pSol  met,
char  metRidTyp 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the meric structure.
metRidTypmetric storage (classic or special)
Returns
1 if success, 0 if fail.

Compute the quality of the tetras over the mesh.

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

◆ _MMG5_caltet33_ani()

double _MMG5_caltet33_ani ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_pTetra  pt 
)
inline
Parameters
meshpointer toward the mesh structure.
metpointer toward the meric structure.
ptpointer toward a tetrahedra.
Returns
The anisotropic quality of the tet or 0.0 if fail.

Compute the quality of the tet pt with respect to the anisotropic metric met. $ Q = V_met(K) / (sum(len(edge_K)^2)^(3/2) $ and for a calssic storage of metrics at ridges.

Todo:
test with the square of this measure
Here is the caller graph for this function:

◆ _MMG5_countelt()

int _MMG5_countelt ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
double *  weightelt,
long *  npcible 
)

Approximation of the final number of vertex.

Warning
call MMG3D_hashTetra(mesh,1) or analysis before using
Todo:
Doxygen documentation
Here is the call graph for this function:

Variable Documentation

◆ ddb

char ddb