Mesh Export/ru: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{Docnav|[[Mesh Import|Import Mesh]]|[[Mesh FromPartShape|Create Mesh from shape]]|[[Mesh_Workbench|Mesh_Workbench]]|IconL=Mesh_ImportMesh.png|IconC=Workbench_Mesh.svg|IconR=Mesh MeshFromShape.png}}


{{Docnav
{{GuiCommand/ru
|[[Mesh_Import|Import]]
|Name=Mesh ExportMesh‏‎
|[[Mesh_FromPartShape|FromPartShape]]
|Name/ru=Mesh ExportMesh‏‎
|[[Mesh_Workbench|Mesh]]
|MenuLocation=Сетки → Экспорт сетки
|IconL=Mesh_Import.svg
|Workbenches=[[Mesh Workbench/ru|Mesh]]
|IconR=Mesh_FromPartShape.svg
|SeeAlso=[[Std_Export/ru|Экспорт файла]]
|IconC=Workbench_Mesh.svg
}}
}}


{{GuiCommand
==Introduction==
|Name=Mesh Export
|MenuLocation=Meshes → Export mesh...
|Workbenches=[[Mesh_Workbench|Mesh]]
|SeeAlso=[[Std_Export|Std Export]], [[Import_Export|Import Export]]
}}


==Description==
This tool allows you to export a mesh object as 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] from the current document.


The '''Mesh Export''' command exports a mesh object to a mesh file format. Several file formats are supported.
==How to use==


==Usage==
# Select mesh object to be exported
# Click on [[Image:Mesh_ExportMesh.png|32px]] or choose {{KEY|Meshes}} → {{KEY|[[Image:Mesh ExportMesh.png|24px]] Export Mesh...}} from the top menu.


# Select a single mesh object.
==Links==
# There are several ways to invoke the command:
#* Press the {{Button|[[Image:Mesh_Export.svg|16px]] [[Mesh_Export|Export mesh...]]}} button.
#* Select the {{MenuCommand|Meshes → [[Image:Mesh_Export.svg|16px]] Export mesh...}} option from the menu.
#* Select the {{MenuCommand|[[Image:Mesh_Export.svg|16px]] Export mesh...}} option from the [[Tree_view|Tree view]] context menu or [[3D_view|3D view]] context menu.
# Select the correct file format in the dialog box.
# Enter a filename. If you have selected the {{Value|All files (*.*)}} option in the previous step, and do not specify a file extension here, the {{FileName|.stl}} extension will be used.
# Press the {{Button|Save}} button.


==Notes==
<br />


* There are some [[Import_Export_Preferences#Mesh_Formats|export preferences related to Mesh Formats]] but these do not apply to this command. They are used by the [[Std_Export|Std Export]] command.
{{Docnav|[[Mesh Import|Import Mesh]]|[[Mesh FromPartShape|Create Mesh from shape]]|[[Mesh_Workbench|Mesh_Workbench]]|IconL=Mesh_ImportMesh.png|IconC=Workbench_Mesh.svg|IconR=Mesh MeshFromShape.png}}


==Preferences==
{{Mesh Tools navi}}

* The last used file location is stored: {{MenuCommand|Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath}}.

==Scripting==

See also: [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].

To export objects (including mesh objects) to a mesh file format use the {{incode|export}} method of the Mesh module.

{{Code|code=
import FreeCAD
import Mesh

doc = FreeCAD.ActiveDocument

Mesh.export([doc.Cone, doc.Cylinder], 'D:/testfiles/mymodel.stl')
}}


{{Docnav
|[[Mesh_Import|Import]]
|[[Mesh_FromPartShape|FromPartShape]]
|[[Mesh_Workbench|Mesh]]
|IconL=Mesh_Import.svg
|IconR=Mesh_FromPartShape.svg
|IconC=Workbench_Mesh.svg
}}


{{Mesh Tools navi{{#translation:}}}}
{{Userdocnavi}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 13:14, 26 November 2023

Other languages:

Mesh Export

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

Description

The Mesh Export command exports a mesh object to a mesh file format. Several file formats are supported.

Usage

  1. Select a single mesh object.
  2. There are several ways to invoke the command:
    • Press the Export mesh... button.
    • Select the Meshes → Export mesh... option from the menu.
    • Select the Export mesh... option from the Tree view context menu or 3D view context menu.
  3. Select the correct file format in the dialog box.
  4. Enter a filename. If you have selected the All files (*.*) option in the previous step, and do not specify a file extension here, the .stl extension will be used.
  5. Press the Save button.

Notes

Preferences

  • The last used file location is stored: Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath.

Scripting

See also: FreeCAD Scripting Basics.

To export objects (including mesh objects) to a mesh file format use the export method of the Mesh module.

import FreeCAD
import Mesh

doc = FreeCAD.ActiveDocument

Mesh.export([doc.Cone, doc.Cylinder], 'D:/testfiles/mymodel.stl')