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, int8_t typchk) |
int | MMG5_swpgen (MMG5_pMesh mesh, MMG5_pSol met, int nconf, int ilist, int *list, MMG3D_pPROctree PROctree, int8_t typchk) |
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, | ||
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
int MMG5_swpgen | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
int | nconf, | ||
int | ilist, | ||
int * | 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