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

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

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

Go to the source code of this file.

Functions

double MMG5_caltri33_ani (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTria pt)
 
double MMG5_caltri_ani (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTria ptt)
 
double MMG5_caltri_iso (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTria ptt)
 
void MMG5_displayLengthHisto (MMG5_pMesh mesh, MMG5_int ned, double *avlen, MMG5_int amin, MMG5_int bmin, double lmin, MMG5_int amax, MMG5_int bmax, double lmax, int nullEdge, double *bd, MMG5_int *hl, int8_t shift)
 
void MMG5_displayLengthHisto_internal (MMG5_int ned, MMG5_int amin, MMG5_int bmin, double lmin, MMG5_int amax, MMG5_int bmax, double lmax, MMG5_int nullEdge, double *bd, MMG5_int *hl, int8_t shift, int imprim)
 
int MMG5_minQualCheck (MMG5_int iel, double minqual, double alpha)
 

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

Definition in file quality.c.

Function Documentation

◆ MMG5_caltri33_ani()

double MMG5_caltri33_ani ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_pTria  pt 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the meric structure.
ptpointer toward the triangle structure.
Returns
The computed quality.

Compute the quality of the surface triangle ptt with respect to an anisotropic metric and a classic storage of the ridges metrics.

Definition at line 47 of file quality.c.

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

◆ MMG5_caltri_ani()

double MMG5_caltri_ani ( 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 quality.

Compute the quality of the surface triangle ptt with respect to an anisotropic metric.

Warning
The quality is computed as if the triangle is a "straight" triangle.

Definition at line 115 of file quality.c.

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

◆ MMG5_caltri_iso()

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

Compute the quality of the surface triangle ptt with respect to an isotropic metric.

Definition at line 199 of file quality.c.

Here is the caller graph for this function:

◆ MMG5_displayLengthHisto()

void MMG5_displayLengthHisto ( MMG5_pMesh  mesh,
MMG5_int  ned,
double *  avlen,
MMG5_int  amin,
MMG5_int  bmin,
double  lmin,
MMG5_int  amax,
MMG5_int  bmax,
double  lmax,
int  nullEdge,
double *  bd,
MMG5_int *  hl,
int8_t  shift 
)
Parameters
meshpointer toward the mesh structure.
nededges number.
avlenpointer toward the average edges lengths.
aminindex of first extremity of the smallest edge.
bminindex of second extremity of the smallest edge.
lminsmallest edge length.
amaxindex of first extremity of the largest edge.
bmaxindex of second extremity of the largest edge.
lmaxlargest edge length.
nullEdgenumber of edges for which we are unable to compute the length
bdpointer toward the table of the quality span.
hlpointer toward the table that store the number of edges for eac
shiftvalue to shift the target lenght interval span of quality

Display histogram of edge length.

Definition at line 252 of file quality.c.

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

◆ MMG5_displayLengthHisto_internal()

void MMG5_displayLengthHisto_internal ( MMG5_int  ned,
MMG5_int  amin,
MMG5_int  bmin,
double  lmin,
MMG5_int  amax,
MMG5_int  bmax,
double  lmax,
MMG5_int  nullEdge,
double *  bd,
MMG5_int *  hl,
int8_t  shift,
int  imprim 
)
Parameters
nededges number.
aminindex of first extremity of the smallest edge.
bminindex of second extremity of the smallest edge.
lminsmallest edge length.
amaxindex of first extremity of the largest edge.
bmaxindex of second extremity of the largest edge.
lmaxlargest edge length.
nullEdgenumber of edges for which we are unable to compute the length
bdpointer toward the table of the quality span.
hlpointer toward the table that store the number of edges for eac
shiftvalue to shift the target lenght interval span of quality
imprimverbosity level

Display histogram of edge length without the histo header

Definition at line 294 of file quality.c.

Here is the caller graph for this function:

◆ MMG5_minQualCheck()

int MMG5_minQualCheck ( MMG5_int  iel,
double  minqual,
double  alpha 
)
Parameters
ielindex of the worst tetra of the mesh
minqualquality of the worst tetra of the mesh (will be normalized by alpha)
alphanormalisation parameter for the quality
Returns
1 if success, 0 if fail (the quality is lower than MMG5_NULKAL).

Print warning or error messages depending on the quality of the worst tetra of the mesh.

Definition at line 343 of file quality.c.

Here is the caller graph for this function: