mmg2d
mmg2d6.c File Reference

Isosurface discretization. More...

#include "mmg2d.h"
Include dependency graph for mmg2d6.c:

Functions

double MMG2D_voltri (MMG5_pMesh mesh, int ip0, int ip1, int ip2)
 
double MMG2D_vfrac (MMG5_pMesh mesh, MMG5_pSol sol, int k, int pm)
 
int MMG2D_resetRef (MMG5_pMesh mesh)
 
int MMG2D_ismaniball (MMG5_pMesh mesh, MMG5_pSol sol, int start, int8_t istart)
 
int MMG2D_snapval (MMG5_pMesh mesh, MMG5_pSol sol)
 
int MMG2D_chkmaniball (MMG5_pMesh mesh, int start, int8_t istart)
 
int MMG2D_chkmanimesh (MMG5_pMesh mesh)
 
int MMG2D_rmc (MMG5_pMesh mesh, MMG5_pSol sol)
 
int MMG2D_cuttri_ls (MMG5_pMesh mesh, MMG5_pSol sol, MMG5_pSol met)
 
int MMG2D_setref_ls (MMG5_pMesh mesh, MMG5_pSol sol)
 
int MMG2D_mmg2d6 (MMG5_pMesh mesh, MMG5_pSol sol, MMG5_pSol met)
 

Detailed Description

Isosurface discretization.

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

Function Documentation

◆ MMG2D_chkmaniball()

int MMG2D_chkmaniball ( MMG5_pMesh  mesh,
int  start,
int8_t  istart 
)
Here is the caller graph for this function:

◆ MMG2D_chkmanimesh()

int MMG2D_chkmanimesh ( MMG5_pMesh  mesh)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2D_cuttri_ls()

int MMG2D_cuttri_ls ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
MMG5_pSol  met 
)
Parameters
meshpointer toward the mesh
solpointer toward the level-set
metpointer toward a metric (non-mandatory)
Returns
1 if success, 0 otherwise

Effective discretization of the 0 level set encoded in sol in the mesh

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

◆ MMG2D_ismaniball()

int MMG2D_ismaniball ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
int  start,
int8_t  istart 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2D_mmg2d6()

int MMG2D_mmg2d6 ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
MMG5_pSol  met 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2D_resetRef()

int MMG2D_resetRef ( MMG5_pMesh  mesh)
Parameters
meshpointer toward the mesh

Reset MG_ISO vertex and edge references to 0.

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

◆ MMG2D_rmc()

int MMG2D_rmc ( MMG5_pMesh  mesh,
MMG5_pSol  sol 
)
Parameters
meshpointer toward the mesh
solpointer toward the level-set
Returns
1 if success, 0 otherwise

Removal of small parasitic components (bubbles of material, etc) with volume less than mesh->info.rmc * volume of the mesh.

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

◆ MMG2D_setref_ls()

int MMG2D_setref_ls ( MMG5_pMesh  mesh,
MMG5_pSol  sol 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG2D_snapval()

int MMG2D_snapval ( MMG5_pMesh  mesh,
MMG5_pSol  sol 
)
Parameters
meshpointer toward the mesh structure.
solpointer toward the level-set
Returns
1 if success, 0 if fail

Snap values of sol very close to 0 to 0 exactly (to avoid very small triangles in cutting)

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

◆ MMG2D_vfrac()

double MMG2D_vfrac ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
int  k,
int  pm 
)
Parameters
meshpointer toward the mesh structure
solpointer toward the ls function
kindex of the triangle
Returns
volfrac

Calculate the area of the positive (if pm == 1) or negative (if pm == -1) subdomain inside triangle k defined by the ls function in sol

Here is the caller graph for this function:

◆ MMG2D_voltri()

double MMG2D_voltri ( MMG5_pMesh  mesh,
int  ip0,
int  ip1,
int  ip2 
)
inline
Parameters
meshpointer toward the mesh structure.
ip0First vertex of the triangle
ip1Second vertex of the triangle
ip2Third vertex of the triangle
Returns
area of the triangle

Calculate the area of a triangle given by its vertices

Here is the caller graph for this function: