mmg2d
|
#include "mmg2d.h"
Macros | |
#define | KTA 7 |
#define | KTB 11 |
Functions | |
int | MMG2D_hashTria (MMG5_pMesh mesh) |
int | MMG2D_hashQuad (MMG5_pMesh mesh) |
int | MMG2D_assignEdge (MMG5_pMesh mesh) |
int | MMG2D_bdryEdge (MMG5_pMesh mesh) |
int | MMG2D_pack (MMG5_pMesh mesh, MMG5_pSol sol, MMG5_pSol met) |
#define KTA 7 |
#define KTB 11 |
int MMG2D_assignEdge | ( | MMG5_pMesh | mesh | ) |
mesh | pointer toward the mesh |
Transfer some input edge data to the corresponding triangles fields
int MMG2D_bdryEdge | ( | MMG5_pMesh | mesh | ) |
mesh | pointer toward the mesh |
Create the edges in the mesh from the information stored in the triangles, or by identifying the different components of the mesh.
int MMG2D_hashQuad | ( | MMG5_pMesh | mesh | ) |
mesh | pointer toward the mesh structure. |
Create full table of adjacency for quadrangles (quad quad adjacencies and quad
tri adjacencies): 1) if the edge
of quad
is adja to quad
through edge
,
. 2) if the edge
of quad
is adja to tria
through edge
,
.
Step 1: Fill adjacendies between quadrangles
Step 2: Fill adjacencies between quadrangles and triangles
int MMG2D_hashTria | ( | MMG5_pMesh | mesh | ) |
mesh | pointer toward the mesh |
Create adjacency relations between the triangles dein the mesh
int MMG2D_pack | ( | MMG5_pMesh | mesh, |
MMG5_pSol | sol, | ||
MMG5_pSol | met | ||
) |
mesh | pointer toward the mesh structure. |
sol | pointer toward a solution structure. |
met | pointer toward a solution structure. |
Pack the mesh and metric and create explicitly all the mesh structures (edges).
Recreate adjacencies if need be
Pack vertex indices
Count the number of edges in the mesh
Count edges stored in triangles
Count edges stored in quadrangles
Pack edges
Pack triangles
Pack quadrangles
Pack solutions (metric map, displacement, ...)
Pack vertices
Reset ppt->tmp field
Reset garbage collector