mmgs
|
Functions for hash tables management and tetrahedra packing. More...
#include "mmgcommon.h"
Functions | |
int | _MMG5_mmgHashTria (MMG5_pMesh mesh, int *adjt, _MMG5_Hash *hash, int chkISO) |
int | _MMG5_hashEdge (MMG5_pMesh mesh, _MMG5_Hash *hash, int a, int b, int k) |
int | _MMG5_hashUpdate (_MMG5_Hash *hash, int a, int b, int k) |
int | _MMG5_hashGet (_MMG5_Hash *hash, int a, int b) |
int | _MMG5_hashNew (MMG5_pMesh mesh, _MMG5_Hash *hash, int hsiz, int hmax) |
Functions for hash tables management and tetrahedra packing.
int _MMG5_hashEdge | ( | MMG5_pMesh | mesh, |
_MMG5_Hash * | hash, | ||
int | a, | ||
int | b, | ||
int | k | ||
) |
mesh | pointer toward the mesh structure. |
hash | pointer toward the hash table of edges. |
a | index of the first extremity of the edge. |
b | index of the second extremity of the edge. |
k | index of point along the edge. |
Add edge to the hash table.
int _MMG5_hashGet | ( | _MMG5_Hash * | hash, |
int | a, | ||
int | b | ||
) |
hash | pointer toward the hash table of edges. |
a | index of the first extremity of the edge. |
b | index of the second extremity of the edge. |
Find the index of point stored along .
int _MMG5_hashNew | ( | MMG5_pMesh | mesh, |
_MMG5_Hash * | hash, | ||
int | hsiz, | ||
int | hmax | ||
) |
mesh | pointer toward the mesh structure. |
hash | pointer toward the hash table of edges. |
hsiz | initial size of hash table. |
hmax | maximal size of hash table. |
Hash edges or faces.
int _MMG5_hashUpdate | ( | _MMG5_Hash * | hash, |
int | a, | ||
int | b, | ||
int | k | ||
) |
mesh | pointer toward the mesh structure. |
hash | pointer toward the hash table of edges. |
a | index of the first extremity of the edge. |
b | index of the second extremity of the edge. |
k | new index of point along the edge. |
Update the index of the point stored along the edge
int _MMG5_mmgHashTria | ( | MMG5_pMesh | mesh, |
int * | adjt, | ||
_MMG5_Hash * | hash, | ||
int | chkISO | ||
) |
mesh | pointer toward the mesh structure. |
adjt | pointer toward the adjacency table of the surfacic mesh. |
hash | pointer toward the edge hash table. |
chkISO | flag to say if we check ISO references (so if we come from mmg3d). |
Create surface adjacency