Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
Functions
libtools.c File Reference
#include "mmgcommon_private.h"
Include dependency graph for libtools.c:

Go to the source code of this file.

Functions

void MMG5_version (MMG5_pMesh mesh, char *dim)
 Functions needed by libraries API. More...
 
void MMG5_mmgDefaultValues (MMG5_pMesh mesh)
 
int MMG5_Set_multiMat (MMG5_pMesh mesh, MMG5_pSol sol, MMG5_int ref, int split, MMG5_int rin, MMG5_int rex)
 
int MMG5_Set_lsBaseReference (MMG5_pMesh mesh, MMG5_pSol sol, MMG5_int br)
 
void MMG5_mmgUsage (char *prog)
 
void MMG5_paramUsage1 (void)
 
void MMG5_paramUsage2 (void)
 
void MMG5_lagUsage (void)
 
void MMG5_2d3dUsage (void)
 
void MMG5_advancedUsage (void)
 
static void MMG5_Clean_isoTags (MMG5_pMesh mesh, MMG5_pEdge pa)
 
static int8_t MMG5_should_edge_be_removed (MMG5_pMesh mesh, MMG5_pEdge pa)
 
int MMG5_Clean_isoEdges (MMG5_pMesh mesh)
 

Function Documentation

◆ MMG5_2d3dUsage()

void MMG5_2d3dUsage ( void  )

Print help for common options between 2D and 3D.

Definition at line 291 of file libtools.c.

Here is the caller graph for this function:

◆ MMG5_advancedUsage()

void MMG5_advancedUsage ( void  )

Print help for advanced users of mmg.

Definition at line 302 of file libtools.c.

Here is the caller graph for this function:

◆ MMG5_Clean_isoEdges()

int MMG5_Clean_isoEdges ( MMG5_pMesh  mesh)
Parameters
meshpointer toward mesh
return1 if successful, 0 if fail

Clean edges belonging to isosurf, except for ridges.

Deletion of edges that belong to isosurf

Definition at line 365 of file libtools.c.

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

◆ MMG5_Clean_isoTags()

static void MMG5_Clean_isoTags ( MMG5_pMesh  mesh,
MMG5_pEdge  pa 
)
inlinestatic
Parameters
meshpointer toward mesh
papointer toward edge

Clean tags linked to iso surface discretization (MG_CRN, MG_ISO) along edge.

Definition at line 318 of file libtools.c.

Here is the caller graph for this function:

◆ MMG5_lagUsage()

void MMG5_lagUsage ( void  )

Print help for lagrangian motion option.

Definition at line 275 of file libtools.c.

Here is the caller graph for this function:

◆ MMG5_mmgDefaultValues()

void MMG5_mmgDefaultValues ( MMG5_pMesh  mesh)
Parameters
meshpointer toward the mesh structure.
Returns
0 if fail, 1 if success.

Print the default parameters values.

Definition at line 70 of file libtools.c.

Here is the caller graph for this function:

◆ MMG5_mmgUsage()

void MMG5_mmgUsage ( char *  prog)
Parameters
*progpointer toward the program name.

Print help for common options of the 3 codes (first section).

Definition at line 210 of file libtools.c.

Here is the caller graph for this function:

◆ MMG5_paramUsage1()

void MMG5_paramUsage1 ( void  )

Print help for common parameters options of the 3 codes (first section).

Definition at line 239 of file libtools.c.

Here is the caller graph for this function:

◆ MMG5_paramUsage2()

void MMG5_paramUsage2 ( void  )

Print help for common options of the 3 codes (second section).

Definition at line 258 of file libtools.c.

Here is the caller graph for this function:

◆ MMG5_Set_lsBaseReference()

int MMG5_Set_lsBaseReference ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
MMG5_int  br 
)
Parameters
meshpointer toward the mesh structure.
solpointer toward the sol structure.
brnew level-set base reference.
Returns
0 if failed, 1 otherwise.

Set a new level-set base reference of ref br in ls discretization mode. Base references are boundary conditions to which implicit domain can be attached. All implicit volumes that are not attached to listed based references are deleted as spurious volumes by the rmc option.

Definition at line 174 of file libtools.c.

Here is the caller graph for this function:

◆ MMG5_Set_multiMat()

int MMG5_Set_multiMat ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
MMG5_int  ref,
int  split,
MMG5_int  rin,
MMG5_int  rex 
)
Parameters
meshpointer toward the mesh structure.
solpointer toward the sol structure.
refinput tetra reference.
splitMMG5_MMAT_NoSplit if the entity must not be splitted, MMG5_MMAT_Split otherwise
rininternal reference after ls discretization
rexexternal reference after ls discretization
Returns
0 if failed, 1 otherwise.

Set the reference mapping for the elements of ref ref in ls discretization mode.

Definition at line 102 of file libtools.c.

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

◆ MMG5_should_edge_be_removed()

static int8_t MMG5_should_edge_be_removed ( MMG5_pMesh  mesh,
MMG5_pEdge  pa 
)
inlinestatic
Parameters
meshpointer toward mesh
papointer toward mesh edge
Returns
1 if edge should be removed when cleaning old iso surface, 0 otherwise.

Check if edge pa has to be removed from list of edges when cleaning old isosurface.

Definition at line 345 of file libtools.c.

Here is the caller graph for this function:

◆ MMG5_version()

void MMG5_version ( MMG5_pMesh  mesh,
char *  dim 
)

Functions needed by libraries API.

Author
Charles Dapogny (UPMC)
Cécile Dobrzynski (Bx INP/Inria/UBordeaux)
Pascal Frey (UPMC)
Algiane Froehly (Inria/UBordeaux)
Version
5
Date
04 2015
Parameters
meshpointer toward the mesh
dimstring dontaining the dimension (3D,2D or S)

Print MMG release and date

Definition at line 43 of file libtools.c.

Here is the caller graph for this function: