Mechanical piece remeshing

In this section, surface mesh remeshing is illustrated through several examples and option usage. The file linkrods.mesh is used as input mesh. It is displayed below.

../_images/mechanical1.png

Initial mesh of a connecting rod

Boundary approximation

The quality of the surface approximation may be controlled using -hausd option:

mmgs_O3 linkrods.mesh -hausd 0.01
mmgs_O3 linkrods.mesh -hausd 0.001

The output meshes for these two commands are displayed below. The smaller the Hausdorff distance, the better the boundary approximation.

../_images/mechanical2.png

Output mesh for a Hausdorff parameter of 0.01

../_images/mechanical3.png

Output mesh for a Hausdorff parameter of 0.001

Maximal edge size

Edge size may be bounded using options -hmin and -hmax:

mmgs_O3 linkrods.mesh -hmax 0.05

Output mesh is displayed below:

../_images/mechanical4.png

Output mesh with maximal edge size set to 0.05