Skip to content

Latest commit

 

History

History
69 lines (48 loc) · 3.71 KB

Export_to_STL_or_OBJ.md

File metadata and controls

69 lines (48 loc) · 3.71 KB
TutorialInfo
Topic Level Time Author FCVersion
Export to STL or OBJ
Beginner
20 minutes
r-frank
0.16.6703

Export to STL or OBJ

Introduction

In this tutorial we will cover how to export STL/OBJ-files from FreeCAD. The mesh-format STL/OBJ is dimensionless; FreeCAD will assume on export that the units used in the model are in mm. If this is not the case you have to scale your model. One way to do this is using Draft Scale.

Sample part

You can use your own FreeCAD file, but you can also create a quick test file:

  1. Open FreeCAD.
  2. Create a new document.
  3. Switch to Part Workbench.
  4. Insert a cube by clicking on Part Box/Cube.
  5. Insert a cone by clicking on Part Cone.
  6. Select both objects in the tree view.
  7. Apply a fusion by clicking on Part Fuse.
  8. Save your file.

Export Method 1: Using "File → Export"

  1. With the default settings, this method creates a mesh with noticeably jagged curves. To get a smoother finish when e.g. 3D printing, the mesh resolution should be configured:
    1. Make sure the Mesh Workbench has been loaded (it is not loaded by default).
    2. Go to Edit → Preferences... → Import-Export → Mesh Formats.
    3. Change Maximum mesh deviation. A lower value will produce a mesh with a higher resolution.
  2. Select the solid to be exported in the tree view.
  3. Choose File → Export... and set the file type to STL mesh (*.stl *.ast).
  4. Enter your file name. The default extension is .stl. You must include the extension .ast to produce an .ast file.
  5. Choose Save.

Export Method 2: Using the Mesh Workbench in FreeCAD

  1. Switch to the Mesh Workbench.
  2. Select the solid to be meshed in the tree view.
  3. Choose Meshes → Create Mesh from shape... from the main (top) menu.
  4. Select one of the available meshers and specify the available options. For more information refer to Mesh from Shape.
  5. Choose OK. The mesh object will be created in the tree view (with a green mesh icon ).
  6. Right click the mesh object in the tree view and choose Export mesh....
  7. Fill in the file name, the extension is not necessary. The extension will be set based on the file type. If you include an extension which does not match the selected file type, an extension for the selected type will be added when the file is saved.
  8. The default file type is Binary STL (*.stl). Change the type if you wish.
  9. Choose Save.

Which Method to choose ?

  • Method 1 can be used for most situations where a mesh file is needed.
  • With method 2 you can verify the mesh in FreeCAD. And if you have more than one solid to convert you can use Tools from the Mesh Workbench. For example, you can fuse meshes before exporting.

Links


documentation index > File_Formats > Export to STL or OBJ