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

Functions for vertices collapsing. More...

Include dependency graph for colver_s.c:

Go to the source code of this file.

Functions

int chkcol (MMG5_pMesh mesh, MMG5_pSol met, MMG5_int k, int8_t i, MMG5_int *list, 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 colver (MMG5_pMesh mesh, MMG5_int *list, int ilist)
 
int colver3 (MMG5_pMesh mesh, MMG5_int *list)
 
int colver2 (MMG5_pMesh mesh, MMG5_int *list)
 
int litcol (MMG5_pMesh mesh, MMG5_int k, int8_t i, double kali)
 

Detailed Description

Functions for vertices collapsing.

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 colver_s.c.

Function Documentation

◆ chkcol()

int chkcol ( MMG5_pMesh mesh,
MMG5_pSol met,
MMG5_int k,
int8_t i,
MMG5_int * list,
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) )
Parameters
meshpointer toward the mesh
metpointer toward the metric
kindex of the element in wich we collapse
iindex of the edge to collapse
listpointer toward the ball of point
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)
Returns
0 if we can't move of if we fail, 1 if success

check if geometry preserved by collapsing edge i

Definition at line 59 of file colver_s.c.

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

◆ colver()

int colver ( MMG5_pMesh mesh,
MMG5_int * list,
int ilist )

Definition at line 280 of file colver_s.c.

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

◆ colver2()

int colver2 ( MMG5_pMesh mesh,
MMG5_int * list )

Definition at line 433 of file colver_s.c.

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

◆ colver3()

int colver3 ( MMG5_pMesh mesh,
MMG5_int * list )
Parameters
meshpointer toward the mesh structure.
listpointer toward the ball of the point to collapse.
Returns
1 if success, 0 if fail.

Collapse edge $list[0]\%3$ in tet $list[0]/3$ ( $ ip->i1$ ) for a ball of the collapsed point of size 3: the collapsed point is removed.

Definition at line 370 of file colver_s.c.

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

◆ litcol()

int litcol ( MMG5_pMesh mesh,
MMG5_int k,
int8_t i,
double kali )

Definition at line 473 of file colver_s.c.

Here is the call graph for this function: