mmg3d
swap_3d.c File Reference

Functions for swapping process over boundary. More...

Include dependency graph for swap_3d.c:

Functions

int MMG5_chkswpbdy (MMG5_pMesh mesh, MMG5_pSol met, int *list, int ilist, int it1, int it2, char typchk)
 
int MMG5_swpbdy (MMG5_pMesh mesh, MMG5_pSol met, int *list, int ret, int it1, MMG3D_pPROctree PROctree, char typchk)
 
int MMG3D_swap23 (MMG5_pMesh mesh, MMG5_pSol met, int k, char metRidTyp, int ifac, int conf0, int adj, int conf1)
 

Variables

char ddb
 

Detailed Description

Functions for swapping process over boundary.

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

Function Documentation

◆ MMG3D_swap23()

int MMG3D_swap23 ( MMG5_pMesh  mesh,
MMG5_pSol  met,
int  k,
char  metRidTyp,
int  ifac,
int  conf0,
int  adj,
int  conf1 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the sol structure.
kindex of the tetrahedron with multiple boundary faces (to be swapped).
metRidTypmetric storage (classic or special)
ifacface of the tetra k that give the best results for the swap23
conf0detected configuration for the swap23 of the tetra k
adjneighbour of the tetra k through the face ifac (4*k1+ifac1)
conf1detected configuration for the swap23 of the tetra adj/4
Returns
-1 if lack of memory, 0 if fail to swap, 1 otherwise.

Search an adjacent to the tetra k and perform swap 2->3 (the common face of the 2 tetra is destroyed and replaced by a common edge used by the three new elts).

Remarks
used in anatet4 to remove the tetra with multiple boundary faces.

Neighbouring element with which we will try to swap

Swap

Quality Update

Here is the call graph for this function:

◆ MMG5_chkswpbdy()

int MMG5_chkswpbdy ( MMG5_pMesh  mesh,
MMG5_pSol  met,
int *  list,
int  ilist,
int  it1,
int  it2,
char  typchk 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric structure.
listpointer toward the shell of the edge.
ilistpointer toward the size of the shell of the edge.
it1first element of the open shell.
it2last element of the open shell.
typchktype of checking permformed for edge length (hmin or LSHORT criterion).
Returns
-1 if fail, 0 if we can not swap the edge, 1 otherwise.

Check whether edge whose shell is provided should be swapped for geometric approximation purposes (the 2 surface triangles are also provided).

Here is the call graph for this function:

◆ MMG5_swpbdy()

int MMG5_swpbdy ( MMG5_pMesh  mesh,
MMG5_pSol  met,
int *  list,
int  ret,
int  it1,
MMG3D_pPROctree  PROctree,
char  typchk 
)
Parameters
meshpointer toward the mesh structure
metpointer toward the solution structure
listpointer toward the shell of the edge
retdobble of the number of tetrahedra in the shell
it1boundary face carrying the beforehand tested terminal point for collapse
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

Swap boundary edge whose shell is provided.

Here is the call graph for this function:

Variable Documentation

◆ ddb

char ddb