Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
Functions
swapar_s.c File Reference

Functions for swapping process. More...

#include "libmmgs_private.h"
#include "mmgsexterns_private.h"
#include "mmgexterns_private.h"
#include "inlined_functions_private.h"
Include dependency graph for swapar_s.c:

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)
 

Detailed Description

Functions for swapping process.

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

Definition in file swapar_s.c.

Function Documentation

◆ chkswp()

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 
)
Parameters
meshpointer toward the mesh
metpointer toward the metric
kindex of the element in wich we perform the edge swap
iindex of the edge to swap
typchktype of check to perform
MMGS_lenEdgpointer toward 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_caltripointer toward 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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ swapar()

int swapar ( MMG5_pMesh  mesh,
MMG5_int  k,
int  i 
)
Parameters
meshpoiner toward the mesh structure.
kelt index.
iindex of the elt edge to swap.
Returns
1
Warning
the quality of the resulting triangles is not checked here... It must be checked outside to prevent the creation of empty elts.

Definition at line 318 of file swapar_s.c.

Here is the caller graph for this function: