Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
|
Check the input mesh validity. More...
Go to the source code of this file.
Macros | |
#define | MMG5_EPSLOC 1.00005 |
#define | IEDG(a, b) (((a) > 0) && ((b) > 0)) ? ((a)+(b)) : (((a)+(b))-(1)) |
Functions | |
void | MMG5_chkvol (MMG5_pMesh mesh) |
static int | MMG3D_chk_shellEdgeTag_oneDir (MMG5_pMesh mesh, MMG5_int start, MMG5_int na, MMG5_int nb, uint16_t tag, MMG5_int ref, MMG5_int piv, MMG5_int adj) |
int | MMG3D_chk_shellEdgeTag (MMG5_pMesh mesh, MMG5_int start, int8_t ia, uint16_t tag, MMG5_int ref) |
void | MMG3D_chkmeshedgestags (MMG5_pMesh mesh) |
void | MMG3D_chkedgetag (MMG5_pMesh mesh, MMG5_int ip1, MMG5_int ip2, int tag) |
void | MMG3D_chkfacetags (MMG5_pMesh mesh) |
static void | MMG3D_consistency_error_message (MMG5_pMesh mesh, MMG5_pPoint ppt, MMG5_int k, int i, MMG5_int ip1, MMG5_int ip2) |
void | MMG3D_chkpointtag (MMG5_pMesh mesh) |
int | MMG5_chkmshsurf (MMG5_pMesh mesh) |
static int | MMG3D_chkcoquilface (MMG5_pMesh mesh) |
int | MMG5_mmg3dChkmsh (MMG5_pMesh mesh, int severe, MMG5_int base) |
int | MMG5_chkptonbdy (MMG5_pMesh mesh, MMG5_int np) |
int | MMG5_cntbdypt (MMG5_pMesh mesh, MMG5_int nump) |
int | MMG5_chkfemtopo (MMG5_pMesh mesh) |
int | srcface (MMG5_pMesh mesh, MMG5_int n0, MMG5_int n1, MMG5_int n2) |
Variables | |
int8_t | ddb |
Check the input mesh validity.
Definition in file chkmsh_3d.c.
#define IEDG | ( | a, | |
b | |||
) | (((a) > 0) && ((b) > 0)) ? ((a)+(b)) : (((a)+(b))-(1)) |
Definition at line 40 of file chkmsh_3d.c.
#define MMG5_EPSLOC 1.00005 |
Definition at line 39 of file chkmsh_3d.c.
int MMG3D_chk_shellEdgeTag | ( | MMG5_pMesh | mesh, |
MMG5_int | start, | ||
int8_t | ia, | ||
uint16_t | tag, | ||
MMG5_int | ref | ||
) |
mesh | pointer to the mesh |
start | tetra from which we start to travel |
ia | local index of edge that must be updated |
tag | edge tag |
ref | edge ref |
Test consistency of tag and ref of the boundary edge \ia of tetra start by traveling its shell.
Definition at line 142 of file chkmsh_3d.c.
|
inlinestatic |
mesh | pointer to the mesh |
start | tetra from which we start to travel |
na | edge vertex |
nb | edge vertex |
tag | edge tag |
ref | edge ref |
piv | global index of the pivot to set the sense of travel |
adj | index of adjacent tetra for the travel |
Test consistency of tag and ref of the edge na nb from tetra start by traveling its shell in one direction (given by the pivot piv).
Definition at line 92 of file chkmsh_3d.c.
|
inlinestatic |
mesh | pointer to the mesh structure. |
Check the number of boundary faces in each edge shell and the consistency of the edge tag.
Definition at line 466 of file chkmsh_3d.c.
void MMG3D_chkedgetag | ( | MMG5_pMesh | mesh, |
MMG5_int | ip1, | ||
MMG5_int | ip2, | ||
int | tag | ||
) |
mesh | pointer to the mesh |
ip1 | first vertex of edge to test |
ip2 | second vertex of edge to test |
tag | edge tag |
Test consistency between the tags of the edge ip1 - ip2 from all the tetra of the edge shell.
Definition at line 290 of file chkmsh_3d.c.
void MMG3D_chkfacetags | ( | MMG5_pMesh | mesh | ) |
mesh | pointer to the mesh |
Check that faces do not have nonsensical tags (MG_GEO, MG_NOM, MG_CRN).
Definition at line 323 of file chkmsh_3d.c.
void MMG3D_chkmeshedgestags | ( | MMG5_pMesh | mesh | ) |
mesh | pointer to the mesh |
Test consistency between the tags in the xtetra of all mesh edges marked as boundaries.
Definition at line 200 of file chkmsh_3d.c.
void MMG3D_chkpointtag | ( | MMG5_pMesh | mesh | ) |
mesh |
Test consistency between points and edges tags. If an error is detected, hash mesh edges to check the consistency between the tags of tetra edges.
Check consistency between edge tags and point tags
Definition at line 383 of file chkmsh_3d.c.
|
inlinestatic |
mesh | pointer to the mesh |
ppt | pointer to unconsistent point |
k | tetra index |
i | local index of edge in tetra k |
ip1 | first vertex of edge to test |
ip2 | second vertex of edge to test |
Print error message when an edge vertex has a non-consistent tag.
An error has been detected: check the consistency between the tags of tetra edges
Definition at line 354 of file chkmsh_3d.c.
int MMG5_chkfemtopo | ( | MMG5_pMesh | mesh | ) |
mesh | pointer to the mesh structure. |
Count the number of tetras that have several boundary faces, as well as the number of internal edges connecting points of the boundary.
Definition at line 824 of file chkmsh_3d.c.
int MMG5_chkmshsurf | ( | MMG5_pMesh | mesh | ) |
int MMG5_chkptonbdy | ( | MMG5_pMesh | mesh, |
MMG5_int | np | ||
) |
Search boundary faces containing point np.
Definition at line 713 of file chkmsh_3d.c.
void MMG5_chkvol | ( | MMG5_pMesh | mesh | ) |
mesh | pointer to mesh |
Test that tetra have positive volumes.
Definition at line 51 of file chkmsh_3d.c.
int MMG5_cntbdypt | ( | MMG5_pMesh | mesh, |
MMG5_int | nump | ||
) |
Count how many boundary faces share point nump.
Definition at line 775 of file chkmsh_3d.c.
int MMG5_mmg3dChkmsh | ( | MMG5_pMesh | mesh, |
int | severe, | ||
MMG5_int | base | ||
) |
mesh | pointer to the mesh structure. |
severe | level of performed check (unused) |
base | unused argument. |
Check the mesh validity
Definition at line 508 of file chkmsh_3d.c.
int srcface | ( | MMG5_pMesh | mesh, |
MMG5_int | n0, | ||
MMG5_int | n1, | ||
MMG5_int | n2 | ||
) |
Search face n0,n1,n2 in mesh, and get the support tetras, with the corresponding refs.
Definition at line 907 of file chkmsh_3d.c.
|
extern |
Definition at line 42 of file mmg3d1_delone.c.