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

Perform volume and surface mesh adaptation with pattern splitting. More...

#include "libmmg3d.h"
#include "inlined_functions_3d_private.h"
#include "mmg3dexterns_private.h"
Include dependency graph for mmg3d1_pattern.c:

Go to the source code of this file.

Functions

static MMG5_int MMG5_adpspl (MMG5_pMesh mesh, MMG5_pSol met, int *warn)
 
static MMG5_int MMG5_adpcol (MMG5_pMesh mesh, MMG5_pSol met)
 
static int MMG5_adptet (MMG5_pMesh mesh, MMG5_pSol met, MMG5_int *permNodGlob)
 
int MMG5_mmg3d1_pattern (MMG5_pMesh mesh, MMG5_pSol met, MMG5_int *permNodGlob)
 

Detailed Description

Perform volume and surface mesh adaptation with pattern splitting.

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

Perform volume and surface mesh adaptation with pattern splitting (MMG_PATTERN preprocessor flag set to ON).

Definition in file mmg3d1_pattern.c.

Function Documentation

◆ MMG5_adpcol()

static MMG5_int MMG5_adpcol ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
static
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
Returns
-1 if failed.
number of deleted points.

Collapse edges of length smaller than MMG3D_LOPTS.

Find shortest edge

Try to collapse this edge

Definition at line 192 of file mmg3d1_pattern.c.

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

◆ MMG5_adpspl()

static MMG5_int MMG5_adpspl ( MMG5_pMesh  mesh,
MMG5_pSol  met,
int *  warn 
)
static
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
*warnwarn is set to 1 if we don't have enough memory to complete mesh.
Returns
-1 if failed.
number of new points.

Split edges of length bigger than MMG3D_LOPTL.

Definition at line 53 of file mmg3d1_pattern.c.

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

◆ MMG5_adptet()

static int MMG5_adptet ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_int *  permNodGlob 
)
static
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
permNodGlobif provided, strore the global permutation of nodes.
Returns
0 if failed, 1 otherwise.

Analyze tetrahedra and split long or collapse short edges according to prescribed metric.

Definition at line 258 of file mmg3d1_pattern.c.

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

◆ MMG5_mmg3d1_pattern()

int MMG5_mmg3d1_pattern ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_int *  permNodGlob 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
permNodGlobif provided, strore the global permutation of nodes.
Returns
0 if failed, 1 if success.

Main adaptation routine.

— stage 1: geometric mesh

— Stage 2: computational mesh

Definition at line 428 of file mmg3d1_pattern.c.

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