Mesh Import: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
Line 20: Line 20:
|MenuLocation=Meshes → Import mesh...
|MenuLocation=Meshes → Import mesh...
|Workbenches=[[Mesh_Workbench|Mesh]]
|Workbenches=[[Mesh_Workbench|Mesh]]
|SeeAlso=[[Std_Import|Std Import]], [[Std_Open|Std Open]], [[Import_Export_Preferences|Import Export Preferences]], [[Import_Export|Import Export]]
|SeeAlso=[[Std_Import|Std Import]], [[Std_Open|Std Open]], [[Import_Export|Import Export]]
}}
}}


Line 42: Line 42:


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

==Notes==

* Todo.

==Preferences==

* Todo.


==Properties==
==Properties==

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

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.

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