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

Functions to compute the quality. More...

#include "libmmg2d_private.h"
#include "mmg2dexterns_private.h"
Include dependency graph for quality_2d.c:

Go to the source code of this file.

Functions

double MMG2D_quickcal (MMG5_pMesh mesh, MMG5_pTria pt)
 
double MMG2D_caltri_iso_3pt (double *a, double *b, double *c)
 
double MMG2D_caltri_iso (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTria pt)
 
double MMG2D_caltri_ani (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTria pt)
 
int MMG2D_outqua (MMG5_pMesh mesh, MMG5_pSol met)
 

Detailed Description

Functions to compute the quality.

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

Definition in file quality_2d.c.

Function Documentation

◆ MMG2D_caltri_ani()

double MMG2D_caltri_ani ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_pTria  pt 
)

Definition at line 121 of file quality_2d.c.

Here is the caller graph for this function:

◆ MMG2D_caltri_iso()

double MMG2D_caltri_iso ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_pTria  pt 
)
Parameters
pointertoward the mesh
pointertoward the metric (for compatibility with aniso interface)
ptpointer toward the tria
Returns
non-normalized quality if success, 0 if triangle is null or inverted.

Compute quality of the triangle pt when the supplied metric is isotropic; return 0 in the case that the triangle has inverted orientation.

Definition at line 107 of file quality_2d.c.

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

◆ MMG2D_caltri_iso_3pt()

double MMG2D_caltri_iso_3pt ( double *  a,
double *  b,
double *  c 
)
Parameters
acoordinates of first vertex of tria
bcoordinates of second vertex of tria
ccoordinates of third vertex of tria
Returns
non-normalized quality if success, 0 if triangle is null or inverted.

Compute quality of a triangle from the datum of its 3 vertices.

Definition at line 68 of file quality_2d.c.

Here is the caller graph for this function:

◆ MMG2D_outqua()

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

Definition at line 183 of file quality_2d.c.

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

◆ MMG2D_quickcal()

double MMG2D_quickcal ( MMG5_pMesh  mesh,
MMG5_pTria  pt 
)
Parameters
meshpointer toward the mesh
ptpointer toward the tria
Returns
the oriented area of the triangle.

Compute oriented area of tria pt

Definition at line 46 of file quality_2d.c.

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