Mesh quality improvement with mean edge length preservation

mmg3d allows to improve the quality of an input mesh while keeping the mean edge lengths of the mesh.

To illustrate this feature, consider the mesh (cube.mesh) displayed below. This mesh is provided without any associated sizemap.

../_images/cube_init.png

Initial cube mesh

To improve mesh quality and preserve mean edge size, it is necessary to use the -optim option:

mmg3d_O3 -optim cube.mesh -out optimMesh.mesh
  • Option -out allows to choose the ouput file name. By default, the output mesh would have been named cube.o.mesh.

  • Option -optim enables mesh improvement with mean edge length preservation.

As output, a mesh named optimMesh.mesh is produced, as well as the size map optimMesh.sol, computed to preserve the edge sizes.

../_images/cube_optim.png

Output cube mesh using the -optim option and computed size map.

By default, mmg try to coarsen the mesh with respect to:

  • geometric approximation

  • gradation control value

  • minimal and maximal edge sizes if specified by the user

For example, running mmg3d without argument:

mmg3d_O3 cube.mesh

produces the output mesh displayed below. As the approximation of the cube boundaries is exact, the remesher can coarsen the mesh.

../_images/cube_default.png

Default output mesh.