FreeCAD Memo

How to create meshes from a solid

7/17/2014
Version 0.14
  1. Click [File]-[New] in menu bar. Create new document and a solid.
    Create Mesh
  2. Move to Mesh Design wrokbenchMeshDesign Workbench.
  3. Select a part you want to meshed on the model tree. Click [Meshes]-[Create mesh from shape...] in menu bar and following dailog will be displayed.
    Create Mesh
    Mesher that can be used are "Standard", "Mefisto", "Netgen". Meshes to be created and Parameters of each mesher are as follow.
    • Standard

      Surface deviation:If this parameter is smaller, meshes becomes finer.
      MeshingStandard1 Surface deviation=0.1
      MeshingStandard2 Surface deviation=0.01
    • Mefisto

      Maximum Edge length:If this parameter is smaller, meshes becomes finer.
      MeshingMefisto1 Maximum Edge length=10.0
      MeshingMefisto2 Maximum Edge length=5.0
      MeshingMefisto3 Maximum Edge length=2.0
    • Netgen

      • Mesh size grading : If this parameter is smaller, meshes becomes finer. A value in the range of 0.1-10.
      • Element per edge : If this parameter is larger, meshes becomes finer. A value in the range of 0.1-10.
      • Element per curvature radius : If this parameter is larger, meshes becomes finer. A value in the range of 0.1-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.
      MeshingNetgen1 Mesh size grading=0.3 Element per edge=1.0 Element per curvature radius=2.0
      MeshingNetgen2 Mesh size grading=0.1 Element per edge=3.0 Element per curvature radius=5.0
      MeshingNetgen3 Mesh size grading=0.3 Element per edge=5.0 Element per curvature radius=10.0
      MeshingNetgen4 Enable "second order elements"
      MeshingNetgen5 Enable "Quad dominant"
  4. Set paramters in the dialog and click OK to create mesh.
  5. 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.
    CreateMesh2
  6. After confirm that the mesh does not have the problem, export it by [Meshes]-[Export mesh...] in menu bar.
    CreateMesh3
    Following formats can be used in FreeCAD version 0.14.
    • Binary STL (*.stl)
    • ASCII STL (*.stl)
    • Binary Mesh (*.bms)
    • Alias Mesh (*.obj)
    • Object File Format (*.off)
    • Inventor V2*.1 ascii (*.iv)
    • X3D Extensible 3D (*.x3d)
    • Stanford Polygon (*.ply)
    • VRML V2.0 (*.wrl *.vrml)
    • Compressed VRML V2.0 (*.wrz)
    • Nastran (*.nas *.bdf)
    • Python module file (*.py)
References:
Back