Mesh Import: Difference between revisions

From FreeCAD Documentation
(Revising. 'In progress' for now.)
Line 1: Line 1:
<languages/>
<languages/>

{{Page in progress}}

<translate>
<translate>

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


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


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


The '''Mesh Import''' command imports geometry from a mesh file format into the active document. Several file formats are supported.
<!--T:4-->
This tool allows you to import a mesh file into the current document. See [[Import_Export_Preferences#Mesh_Formats]] for the various types of Mesh formats FreeCAD can handle.


==Usage== <!--T:5-->
==Usage==


# There are several ways to invoke the command:
<!--T:6-->
#* Press the {{Button|[[Image:Mesh_Import.svg|16px]] [[Mesh_Import|Mesh Import]]}} button.
# Invoke the ImportMesh command several ways:
#* Press on the [[Image:Mesh_Import.svg|32px]] button in the Mesh toolbar
#* Select the {{MenuCommand|Meshes → [[Image:Mesh_Import.svg|16px]] Import mesh...}} option from the menu.
#* Use the {{MenuCommand|Meshes → [[Image:Mesh_Import.svg|24px]] Import Mesh...}} entry from the Meshes 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.
# Select the file to be imported
# Optionally select the correct file format in the dialog box.
# Select a file.
# Press the {{Button|Open}} button.


==Options==
==Links== <!--T:7-->


* Press {{KEY|Esc}} or the {{Button|Cancel}} button to abort the command.

==Notes==

* Todo.

==Preferences==

* Todo.

==Properties==

* Todo.

==Scripting==

{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].

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

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


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


Line 46: Line 77:
{{Mesh Tools navi{{#translation:}}}}
{{Mesh Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Revision as of 14:15, 29 June 2020

This documentation is a work in progress. Please don't mark it as translatable since it will change in the next hours and days.


Mesh Import

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

Description

The Mesh Import command imports geometry from a mesh file format into the active document. Several file formats are supported.

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.

Options

  • Press Esc or the Cancel button to abort the command.

Notes

  • Todo.

Preferences

  • Todo.

Properties

  • Todo.

Scripting

See also: FreeCAD Scripting Basics.

To import a mesh file use the insert method of the Mesh module.

import Mesh
Mesh.insert(u'D:/testfiles/cylinder.stl')