Mesh Import: Difference between revisions

From FreeCAD Documentation
m (Docnav)
No edit summary
(22 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>

{{Docnav| |[[Mesh Export|Export Mesh]]|[[Mesh_Workbench|Mesh]]|IconC=Workbench_Mesh.svg|IconR=Mesh_ExportMesh.png}}
<!--T:9-->
{{Docnav
|
|[[Mesh_Export|Export]]
|[[Mesh_Workbench|Mesh]]
|IconL=
|IconR=Mesh_Export.svg
|IconC=Workbench_Mesh.svg
}}


<!--T:2-->
<!--T:2-->
{{GuiCommand
{{GuiCommand|Name=Mesh ImportMesh‏‎|MenuLocation=Meshes → Import Mesh|Workbenches=[[Mesh Workbench|Mesh]]|SeeAlso=[[Std_Import|Std Import]]}}
|Name=Mesh Import
|MenuLocation=Meshes → Import mesh...
|Workbenches=[[Mesh_Workbench|Mesh]]
|SeeAlso=[[Std_Import|Std Import]], [[Std_Open|Std Open]], [[Import_Export|Import Export]]
}}


==Introduction== <!--T:3-->
==Description== <!--T:3-->


<!--T:4-->
<!--T:4-->
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|Mesh Feature]].
This tool allows you to add a file [https://en.wikipedia.org/wiki/STL_(file_format) *.STL], [https://en.wikipedia.org/wiki/STL_(file_format)#ASCII_STL *.AST], *.BMS, [https://en.wikipedia.org/wiki/Wavefront_.obj_file *.OBJ], [http://en.wikipedia.org/wiki/OFF *.OFF], [http://web.mit.edu/ivlib/www/iv/files.html *.iv], [https://en.wikipedia.org/wiki/PLY_(file_format) *.PLY] to the current document.


==How to use== <!--T:5-->
==Usage== <!--T:5-->


<!--T:6-->
<!--T:6-->
# There are several ways to invoke the command:
# Click on [[Image:Mesh_ImportMesh.png|32px]] or choose {{KEY|Meshes}} → {{KEY|[[Image:Mesh ImportMesh.png|24px]] Import Mesh...}} from the top menu.
#* Press the {{Button|[[Image:Mesh_Import.svg|16px]] [[Mesh_Import|Mesh Import]]}} button.
# Select the file to be imported
#* Select the {{MenuCommand|Meshes → [[Image:Mesh_Import.svg|16px]] Import mesh...}} option from the menu.
#* Select the {{MenuCommand|[[Image:Mesh_Import.svg|16px]] Import mesh...}} option from the [[Tree_view|Tree view]] context menu or [[3D_view|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.
# Optionally select the correct file format in the dialog box.
# Select a file.
# Press the {{Button|Open}} button.


==Links== <!--T:7-->
==Preferences== <!--T:15-->


<!--T:8-->
<!--T:16-->
* The last used file location is stored: {{MenuCommand|Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath}}.
<br />


==Properties== <!--T:17-->
{{Docnav| |[[Mesh Export|Export Mesh]]|[[Mesh_Workbench|Mesh]]|IconC=Workbench_Mesh.svg|IconR=Mesh_ExportMesh.png}}

<!--T:18-->
See: [[Mesh_Feature|Mesh Feature]].

==Scripting== <!--T:19-->

<!--T:20-->
See also: [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].

<!--T:21-->
To import a mesh file use the {{incode|insert}} method of the Mesh module.

</translate>
{{Code|code=
import Mesh
Mesh.insert('D:/testfiles/cylinder.stl')
}}
<translate>


{{Mesh Tools navi}}


<!--T:10-->
{{Userdocnavi}}
{{Docnav
|
|[[Mesh_Export|Export]]
|[[Mesh_Workbench|Mesh]]
|IconL=
|IconR=Mesh_Export.svg
|IconC=Workbench_Mesh.svg
}}


</translate>
</translate>
{{Mesh Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Revision as of 19:05, 30 January 2021

Mesh Import

Menu location
Meshes → Import mesh...
Workbenches
Mesh
Default shortcut
None
Introduced in version
-
See also
Std Import, Std Open, Import Export

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

  1. There are several ways to invoke the command:
    • Press the Mesh Import 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.
  2. Optionally select the correct file format in the dialog box.
  3. Select a file.
  4. Press the Open button.

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')