Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
|
Functions for swapping process. More...
#include "libmmgs_private.h"
#include "mmgsexterns_private.h"
#include "mmgexterns_private.h"
#include "inlined_functions_private.h"
Go to the source code of this file.
Functions | |
int | chkswp (MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, int i, int8_t typchk, double(*MMGS_lenEdg)(MMG5_pMesh, MMG5_pSol, MMG5_int, MMG5_int, int8_t), double(*MMGS_caltri)(MMG5_pMesh, MMG5_pSol, MMG5_pTria)) |
int | swapar (MMG5_pMesh mesh, MMG5_int k, int i) |
Functions for swapping process.
Definition in file swapar_s.c.
int chkswp | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
MMG5_int | k, | ||
int | i, | ||
int8_t | typchk, | ||
double(*)(MMG5_pMesh, MMG5_pSol, MMG5_int, MMG5_int, int8_t) | MMGS_lenEdg, | ||
double(*)(MMG5_pMesh, MMG5_pSol, MMG5_pTria) | MMGS_caltri | ||
) |
mesh | pointer to the mesh |
met | pointer to the metric |
k | index of the element in wich we perform the edge swap |
i | index of the edge to swap |
typchk | type of check to perform |
MMGS_lenEdg | pointer to the suitable fct to compute edge lengths depending on presence of input metric, metric type (iso/aniso) and typchk value (i.e. stage of adaptation) |
MMGS_caltri | pointer to the suitable fct to compute tria quality depending on presence of input metric, metric type (iso/aniso) and typchk value (i.e. stage of adaptation) |
Check whether edge i of triangle k should be swapped for geometric approximation purposes
Definition at line 58 of file swapar_s.c.
int swapar | ( | MMG5_pMesh | mesh, |
MMG5_int | k, | ||
int | i | ||
) |
mesh | poiner toward the mesh structure. |
k | elt index. |
i | index of the elt edge to swap. |
Definition at line 318 of file swapar_s.c.