Mesh Import: Difference between revisions

From FreeCAD Documentation
(Revising. 'In progress' for now.)
No edit summary
Line 5: Line 5:
<translate>
<translate>


<!--T:9-->
{{Docnav
{{Docnav
|
|
Line 14: Line 15:
}}
}}


<!--T:2-->
{{GuiCommand
{{GuiCommand
|Name=Mesh Import
|Name=Mesh Import
Line 21: Line 23:
}}
}}


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


<!--T:4-->
The '''Mesh Import''' command imports geometry from a mesh file format into the active document. Several file formats are supported.
The '''Mesh Import''' command imports geometry from a mesh file format into the active document. Several file formats are supported.


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


<!--T:6-->
# There are several ways to invoke the command:
# There are several ways to invoke the command:
#* Press the {{Button|[[Image:Mesh_Import.svg|16px]] [[Mesh_Import|Mesh Import]]}} button.
#* Press the {{Button|[[Image:Mesh_Import.svg|16px]] [[Mesh_Import|Mesh Import]]}} button.
Line 55: Line 59:
{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
{{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.
To import a mesh file use the {{incode|insert}} method of the Mesh module.


Line 65: Line 68:
<translate>
<translate>


<!--T:10-->
{{Docnav
{{Docnav
|[[Mesh_Import|Mesh Import]]
|[[Mesh_Import|Mesh Import]]

Revision as of 18:18, 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')