GuiCommand | ||||||||
---|---|---|---|---|---|---|---|---|
|
The Mesh Export command exports a mesh object to a mesh file format. Several file formats are supported.
- Select a single mesh object.
- There are several ways to invoke the command:
- Press the Export mesh... button.
- Select the Meshes → Export mesh... option from the menu.
- Select the Export mesh... option from the Tree view context menu or 3D view context menu.
- Select the correct file format in the dialog box.
- Enter a filename. If you have selected the {{Value|All files (.)}} option in the previous step, and do not specify a file extension here, the .stl extension will be used.
- Press the Save button.
- There are some export preferences related to Mesh Formats but these do not apply to this command. They are used by the Std Export command.
- The last used file location is stored: Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath.
See also: FreeCAD Scripting Basics.
To export objects (including mesh objects) to a mesh file format use the export
method of the Mesh module.
import FreeCAD
import Mesh
doc = FreeCAD.ActiveDocument
Mesh.export([doc.Cone, doc.Cylinder], 'D:/testfiles/mymodel.stl')
{{Mesh Tools navi}}
⏵ documentation index > Mesh > Mesh Export