Mesh packing

\(\texttt{MMG3D_packMesh}\)

int MMG3D_packMesh(MMG5_pMesh mesh, MMG5_pSol sol, MMG5_pSol met)

Pack the sparse mesh and create triangles and edges before getting out of library

Parameters:
  • mesh – pointer to the mesh structure (unused).

  • sol – pointer to a solution structure.

  • met – pointer to a solution structure.

Returns:

1 if success, 0 if fail or if we are unable to build triangles.

\(\texttt{MMG3D_bdryBuild}\)

This function physically creates the surface entities (triangles and edges) of the input mesh. Relying on the information contained in the mesh->xtetra structure, the fields mesh->tria and mesh->edge are filled.

MMG5_int MMG3D_bdryBuild(MMG5_pMesh mesh)

Create the boundary entities of the mesh (triangles and edges).

Warning

mesh must be packed and hashed

Parameters:

mesh – pointer to the mesh structure (unused).

Returns:

-1 if fail, the number of detected ridges otherwise