Create new document and create a shape to be meshed.
Switch workbench to Mesh Design wrokbench.
Select the shape in model tree and run "Mesh from shape" to show a dialog box as following. Then select the mesher in the tabs of the dialog box and set each parameter.
Mesher that can be used are "Standard", "Mefisto", "Netgen" and "gmsh". Meshes to be created and the parameters of each mesher are as follow.
Parameter | Behavior |
---|---|
Surface deviation | If this parameter is smaller, meshes becomes finer. |
Angular deviation | If this parameter is smaller, meshes becomes finer. |
Relative surface deviation | Create meshes depending on edge length. |
Apply face colors to mesh | Set shape color to the mesh. |
Define segments by face color | Set segments to meshes depending on shape colors. |
Parameter | Behavior |
---|---|
Maximum Edge length | Maximum edge length. If this parameter is smaller, meshes becomes finer. |
Parameter | Behavior |
---|---|
Fineness | Degree of mesh fineness. If you want to customize parameters, select "User defined". |
Mesh size grading | If this parameter is smaller, meshes becomes finer. A value in the range of 0.1-1. |
Element per edge | If this parameter is larger, meshes becomes finer. A value in the range of 0.1-1. |
Element per curvature radius | If this parameter is larger, meshes becomes finer. A value in the range of 0.2-10. |
Optimize surface | Whether optimization of surface shape will be done. |
Second order elements | Whether second order elments will be generated. |
Quad dominant | Whether meshes will be arranged like hexahedral. |
For gmsh mesher, you should specify the Gmsh executable to be used at first.
Set the [Path] of the dialog box to the executable file in the FreeCAD installation folder (for example, "C:¥Program Files¥FreeCAD 0.19¥bin¥gmsh.exe" by default on Windows) or the executable file downloaded from the Gmsh download site.
Parameter | Behavior |
---|---|
Meshing | Meshing method (Adaptive, Delaunay, etc.). |
Max element size | Maximum mesh size. The smaller the size, the finer the mesh. Automatically set to 0. |
Min element size | Minimum mesh size. The smaller the size, the finer the mesh. Automatically set to 0. |
Angle | The angle threshold used to divide surfaces. |
Set paramters in the dialog box and click OK to create mesh.
Select the meshed solid on model tree and type space key to hide it. Then select [View]-[Draw style]-[Wireframe] in menu bar to set 3D view wireframe display mode. Now you can see the generated mesh clearly.
If the mesh has no problem, select it in the model tree and export it with "Export mesh".
Following formats can be used for exporting.