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

Functions for swapping process inside the mesh. More...

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

Go to the source code of this file.

Functions

MMG5_int MMG5_chkswpgen (MMG5_pMesh mesh, MMG5_pSol met, MMG5_int start, int ia, int *ilist, int64_t *list, double crit, int8_t typchk)
 
int MMG5_swpgen (MMG5_pMesh mesh, MMG5_pSol met, MMG5_int nconf, int ilist, int64_t *list, MMG3D_pPROctree PROctree, int8_t typchk)
 

Detailed Description

Functions for swapping process inside the mesh.

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

Definition in file swapgen_3d.c.

Function Documentation

◆ MMG5_chkswpgen()

MMG5_int MMG5_chkswpgen ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_int  start,
int  ia,
int *  ilist,
int64_t *  list,
double  crit,
int8_t  typchk 
)
Parameters
meshpointer toward the mesh structure
metpointer toward the metric structure.
starttetrahedra in which the swap should be performed
iaedge that we want to swap
ilistpointer to store the size of the shell of the edge
listpointer to store the shell of the edge
critimprovment coefficient
Returns
-1 if fail, 0 if we cannot swap, the index of point corresponding to the swapped configuration otherwise ( $4*k+i$).
Parameters
typchktype of checking permformed for edge length (hmin or LSHORT criterion).

Check whether swap of edge ia in start should be performed, and return $4*k+i$ the index of point corresponding to the swapped configuration. The shell of edge is built during the process.

Definition at line 57 of file swapgen_3d.c.

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

◆ MMG5_swpgen()

int MMG5_swpgen ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_int  nconf,
int  ilist,
int64_t *  list,
MMG3D_pPROctree  PROctree,
int8_t  typchk 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the sol structure.
nconfconfiguration.
ilistnumber of tetrahedra in the shell of the edge that we want to swap.
listpointer toward the shell of the edge that we want to swap.
PROctreepointer toward the PROctree structure in Delaunay mode, NULL pointer in pattern mode.
typchktype of checking permformed for edge length (hmin or LSHORT criterion).
Returns
-1 if lack of memory, 0 if fail to swap, 1 otherwise.

Perform swap of edge whose shell is passed according to configuration nconf.

First step : split of edge (na,nb)

Second step : collapse of np towards enhancing configuration

Definition at line 271 of file swapgen_3d.c.

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