mmg3d
|
Functions for swapping process inside the mesh. More...
#include "inlined_functions_3d.h"
Functions | |
int | _MMG5_chkswpgen (MMG5_pMesh mesh, MMG5_pSol met, int start, int ia, int *ilist, int *list, double crit, char typchk) |
int | _MMG5_swpgen (MMG5_pMesh mesh, MMG5_pSol met, int nconf, int ilist, int *list, _MMG3D_pOctree octree, char typchk) |
int | MMG3D_swap23 (MMG5_pMesh mesh, MMG5_pSol met, int k, char metRidTyp) |
Functions for swapping process inside the mesh.
int _MMG5_chkswpgen | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
int | start, | ||
int | ia, | ||
int * | ilist, | ||
int * | list, | ||
double | crit, | ||
char | typchk | ||
) |
mesh | pointer toward the mesh structure |
met | pointer toward the metric structure. |
start | tetrahedra in which the swap should be performed |
ia | edge that we want to swap |
ilist | pointer to store the size of the shell of the edge |
list | pointer to store the shell of the edge |
crit | improvment coefficient |
typchk | type of checking permformed for edge length (hmin or LSHORT criterion). |
Check whether swap of edge ia in start should be performed, and return the index of point corresponding to the swapped configuration. The shell of edge is built during the process.
int _MMG5_swpgen | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
int | nconf, | ||
int | ilist, | ||
int * | list, | ||
_MMG3D_pOctree | octree, | ||
char | typchk | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the sol structure. |
nconf | configuration. |
ilist | number of tetrahedra in the shell of the edge that we want to swap. |
list | pointer toward the shell of the edge that we want to swap. |
octree | pointer toward the octree structure in Delaunay mode, NULL pointer in pattern mode. |
typchk | type of checking permformed for edge length (hmin or LSHORT criterion). |
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
int MMG3D_swap23 | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
int | k, | ||
char | metRidTyp | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the sol structure. |
k | index of the tetrahedron with multiple boundary faces (to be swapped). |
metRidTyp | metric storage (classic or special) |
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).
Neighbouring element with which we will try to swap
Swap
Quality Update