Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
|
Functions for swapping process inside the mesh. More...
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) |
Functions for swapping process inside the mesh.
Definition in file swapgen_3d.c.
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 | ||
) |
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.
Definition at line 57 of file swapgen_3d.c.
int MMG5_swpgen | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
MMG5_int | nconf, | ||
int | ilist, | ||
int64_t * | list, | ||
MMG3D_pPROctree | PROctree, | ||
int8_t | 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. |
PROctree | pointer toward the PROctree 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
Definition at line 271 of file swapgen_3d.c.