Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
Functions | Variables
mmg3d2s.c File Reference
#include "libmmg3d.h"
#include "libmmg3d_private.h"
Include dependency graph for mmg3d2s.c:

Go to the source code of this file.

Functions

int MMG3D_resetRef_lssurf (MMG5_pMesh mesh)
 
int MMG3D_snpval_lssurf (MMG5_pMesh mesh, MMG5_pSol sol)
 
int MMG3D_cuttet_lssurf (MMG5_pMesh mesh, MMG5_pSol sol, MMG5_pSol met)
 
int MMG3D_setref_lssurf (MMG5_pMesh mesh, MMG5_pSol sol)
 

Variables

int8_t ddb
 

Function Documentation

◆ MMG3D_cuttet_lssurf()

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

Proceed to discretization of the trace of the implicit function carried by sol into the surface part of mesh, once values of sol have been snapped/checked

Definition at line 160 of file mmg3d2s.c.

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

◆ MMG3D_resetRef_lssurf()

int MMG3D_resetRef_lssurf ( MMG5_pMesh  mesh)
Parameters
meshpointer toward the mesh.

Reset mesh->info.isoref vertex and tetra references to 0.

Warning
to improve: for now, entities linked to the old ls (corners,required points, normals/tangents, triangles and edges) are deleted in loadMesh. It would be better to analyze wich entities must be keeped and which one must be deleted depending on the split/nosplit infos.

Definition at line 51 of file mmg3d2s.c.

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

◆ MMG3D_setref_lssurf()

int MMG3D_setref_lssurf ( MMG5_pMesh  mesh,
MMG5_pSol  sol 
)
Parameters
meshpointer toward the mesh structure.
solpointer toward the level-set values.
Returns
1.

Set references to surface triangles according to the sign of the level set function.

Definition at line 419 of file mmg3d2s.c.

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

◆ MMG3D_snpval_lssurf()

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

Snap values of the level set function very close to 0 to exactly 0, and prevent nonmanifold patterns from being generated.

Definition at line 107 of file mmg3d2s.c.

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

Variable Documentation

◆ ddb

int8_t ddb
extern

Definition at line 42 of file mmg3d1_delone.c.