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

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

#include "libmmgs_private.h"
#include "inlined_functions_private.h"
#include "mmgsexterns_private.h"
#include "mmgexterns_private.h"
Include dependency graph for quality_s.c:

Go to the source code of this file.

Macros

#define COS145   -0.81915204428899
 

Functions

double caleltsig_ani (MMG5_pMesh mesh, MMG5_pSol met, MMG5_int iel)
 
double caleltsig_iso (MMG5_pMesh mesh, MMG5_pSol met, MMG5_int iel)
 
double incircle (MMG5_pPoint p0, MMG5_pPoint p1, MMG5_pPoint p2, double *o)
 
double diamelt (MMG5_pPoint p0, MMG5_pPoint p1, MMG5_pPoint p2)
 
int MMGS_prilen (MMG5_pMesh mesh, MMG5_pSol met, int metRidTyp)
 
int MMGS_inqua (MMG5_pMesh mesh, MMG5_pSol met)
 
int MMGS_outqua (MMG5_pMesh mesh, MMG5_pSol met)
 
int8_t typelt (MMG5_pPoint p[3], int8_t *ia)
 

Variables

int8_t 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
Todo:
Doxygen documentation

Definition in file quality_s.c.

Macro Definition Documentation

◆ COS145

#define COS145   -0.81915204428899

Definition at line 512 of file quality_s.c.

Function Documentation

◆ caleltsig_ani()

double caleltsig_ani ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_int  iel 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
ielelement index
Returns
0 if fail, -1 if orientation is reversed with regards to orientation of vertices, the computed quality otherwise.

Quality function identic to caltri_ani but puts a sign according to deviation to normal to vertices.

Definition at line 54 of file quality_s.c.

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

◆ caleltsig_iso()

double caleltsig_iso ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_int  iel 
)

Definition at line 141 of file quality_s.c.

Here is the caller graph for this function:

◆ diamelt()

double diamelt ( MMG5_pPoint  p0,
MMG5_pPoint  p1,
MMG5_pPoint  p2 
)
inline

Definition at line 253 of file quality_s.c.

◆ incircle()

double incircle ( MMG5_pPoint  p0,
MMG5_pPoint  p1,
MMG5_pPoint  p2,
double *  o 
)
inline

Definition at line 231 of file quality_s.c.

◆ MMGS_inqua()

int MMGS_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 classical storage of ridges metrics (so before the the MMG5_defsiz function call).

Definition at line 389 of file quality_s.c.

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

◆ MMGS_outqua()

int MMGS_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 ridges metrics (after the MMG5_defsiz function call).

Definition at line 457 of file quality_s.c.

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

◆ MMGS_prilen()

int MMGS_prilen ( MMG5_pMesh  mesh,
MMG5_pSol  met,
int  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.

Definition at line 283 of file quality_s.c.

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

◆ typelt()

int8_t typelt ( MMG5_pPoint  p[3],
int8_t *  ia 
)

Definition at line 515 of file quality_s.c.

Variable Documentation

◆ ddb

int8_t ddb
extern

Definition at line 42 of file mmg3d1_delone.c.