mmg2d
split_2d.c File Reference

Functions for splitting. More...

#include "mmg2d.h"
Include dependency graph for split_2d.c:

Functions

int _MMG2_chkspl (MMG5_pMesh mesh, MMG5_pSol met, int k, char i)
 
int _MMG2_split1b (MMG5_pMesh mesh, int k, char i, int ip)
 
int _MMG2_split1_sim (MMG5_pMesh mesh, MMG5_pSol sol, int k, int vx[3])
 
int _MMG2_split1 (MMG5_pMesh mesh, MMG5_pSol sol, int k, int vx[3])
 
int _MMG2_split2_sim (MMG5_pMesh mesh, MMG5_pSol sol, int k, int vx[3])
 
int _MMG2_split2 (MMG5_pMesh mesh, MMG5_pSol sol, int k, int vx[3])
 
int _MMG2_split3_sim (MMG5_pMesh mesh, MMG5_pSol sol, int k, int vx[3])
 
int _MMG2_split3 (MMG5_pMesh mesh, MMG5_pSol sol, int k, int vx[3])
 
int _MMG2_splitbar (MMG5_pMesh mesh, int k, int ip)
 

Variables

unsigned char ddb
 

Detailed Description

Functions for splitting.

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

Function Documentation

◆ _MMG2_chkspl()

int _MMG2_chkspl ( MMG5_pMesh  mesh,
MMG5_pSol  met,
int  k,
char  i 
)
Parameters
meshpointer toward the mesh
metpointer toward the metric
ktriangle index
ilocal index of the edge to split
Returns
1 if we can split, 0 if not, -1 if fail.

Check whether splitting of edge i in tria k is possible and return the newly created point; possibly perform a dichotomy to find the latest valid position for the point.

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

◆ _MMG2_split1()

int _MMG2_split1 ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
int  k,
int  vx[3] 
)
Parameters
meshpointer toward the mesh
solpointer toward the metric
ktriangle index
vxlist of new point indices for each edge
Returns
0 if fail, 1 if success

Split 1 edge of triangle k

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

◆ _MMG2_split1_sim()

int _MMG2_split1_sim ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
int  k,
int  vx[3] 
)
Parameters
meshpointer toward the mesh
solpointer toward the metric
ktriangle index
vxlist of new point indices for each edge
Returns
0 if fail, 1 if success

Simulate the split of one edge in triangle k

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

◆ _MMG2_split1b()

int _MMG2_split1b ( MMG5_pMesh  mesh,
int  k,
char  i,
int  ip 
)

mesh pointer toward the mesh

Parameters
kindex of the tria to split
ilocal index of the edge to split
ipglobal index of the new point
Returns
1 if success, 0 if fail

Effective splitting of edge i in tria k: point ip is introduced and the adjacency structure in the mesh is preserved

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

◆ _MMG2_split2()

int _MMG2_split2 ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
int  k,
int  vx[3] 
)
Parameters
meshpointer toward the mesh
solpointer toward the metric
ktriangle index
vxlist of new point indices for each edge
Returns
0 if fail, 1 if success

Split 2 edges of triangle k

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

◆ _MMG2_split2_sim()

int _MMG2_split2_sim ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
int  k,
int  vx[3] 
)
Parameters
meshpointer toward the mesh
solpointer toward the metric
ktriangle index
vxlist of new point indices for each edge
Returns
0 if fail, 1 if success

Simulate the split of two edges in triangle k

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

◆ _MMG2_split3()

int _MMG2_split3 ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
int  k,
int  vx[3] 
)
Parameters
meshpointer toward the mesh
solpointer toward the metric
ktriangle index
vxlist of new point indices for each edge
Returns
0 if fail, 1 if success

Split the three edges of triangle k

Here is the call graph for this function:

◆ _MMG2_split3_sim()

int _MMG2_split3_sim ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
int  k,
int  vx[3] 
)
Parameters
meshpointer toward the mesh
solpointer toward the metric
ktriangle index
vxlist of new point indices for each edge
Returns
0 if fail, 1 if success

Simulate the split of three edges in triangle k

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

◆ _MMG2_splitbar()

int _MMG2_splitbar ( MMG5_pMesh  mesh,
int  k,
int  ip 
)
Parameters
meshpointer toward the mesh
kindex of the tria to split
ipglobal index of the new point
Returns
1 if success, 0 if fail

Insert the point ip inside the tria k

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

Variable Documentation

◆ ddb

unsigned char ddb