GuiCommand: Name: Mesh Import MenuLocation: Meshes , Import mesh... Workbenches: Mesh_Workbench SeeAlso: Std_Import, Std_Open, Import_Export
Mesh Import
Description
The Mesh Import command imports geometry from a mesh file format into the active document. Several file formats are supported. The command creates a non-parametric mesh object, a Mesh Feature.
Usage
- There are several ways to invoke the command:
- Press the
Import mesh... button.
- Select the Meshes →
Import mesh... option from the menu.
- Select the
Import mesh... option from the Tree view context menu or 3D view context menu. This option is only available if an existing mesh object has been selected. Note that the selected object is actually not used or modified by the command.
- Press the
- Optionally select the correct file format in the dialog box.
- Select a file.
- Press the Open button.
Supported file formats
The command supports: stl, ast, bms, obj, off, iv, ply, nas and bdf files. For the NASTRAN (nas/bdf) file format, only GRID, CTRIA3 and CQUAD4 cards are supported.
Preferences
- The last used file location is stored: Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath.
Properties
See: Mesh Feature.
Scripting
See also: FreeCAD Scripting Basics.
To import a mesh file use the insert
method of the Mesh module.
import Mesh
Mesh.insert('D:/testfiles/cylinder.stl')
{{Mesh Tools navi}}
⏵ documentation index > Mesh > Mesh Import
This page is retrieved from https://github.com/FreeCAD/FreeCAD-documentation/blob/main/wiki/Mesh_Import.md