Salome HOME
0023546: [EDF] AsterStudy: add a method to Python API to show/hide orientation vector...
[modules/smesh.git] / doc / salome / gui / SMESH / input / importing_exporting_meshes.rst
1
2 .. _importing_exporting_meshes_page:
3
4 ******************************
5 Importing and exporting meshes
6 ******************************
7
8 In MESH there is a functionality allowing import/export of meshes from/to **MED**, **UNV** (I-DEAS 10), **DAT** (simple ascii format), **STL**, **GMF** (internal format of DISTENE products, namely MG-CADSurf, MG-Tetra and MG-Hexa algorithms) and **CGNS** format files. You can also export a group as a whole mesh.
9
10 **To import a mesh:**
11
12 #. From the **File** menu choose the **Import** item, from its sub-menu select the corresponding format (MED, UNV, STL, GMF and CGNS) of the file containing your mesh.
13 #. In the standard **Search File** dialog box find the file for import. It is possible to select multiple files to be imported all at once.  
14 #. Click the **OK** button.
15
16 .. image:: ../images/meshimportmesh.png
17         :align: center
18
19 **To export a mesh or a group:**
20
21 #. Select the object you wish to export.
22 #. From the **File** menu choose the **Export** item, from its sub-menu select the format (MED, UNV, DAT, STL, GMF and CGNS) of the file which will contain your exported mesh.
23 #. In the standard **Search File** select a location for the exported file and enter its name.
24 #. Click the **OK** button.
25
26 .. image:: ../images/meshexportmesh.png
27         :align: center
28
29 If you try to export a group, the warning will be shown:
30
31 .. image:: ../images/meshexportgroupwarning.png
32         :align: center
33
34 * **Don't show this warning anymore** check-box allows to switch off the warning. You can re-activate the warning in :ref:`group_export_warning_pref`.
35
36 There are additional parameters available at export to MED and SAUV format files.
37
38 .. _export_auto_groups:
39
40 Auto Groups
41 ===========
42
43         * **Automatically create groups** check-box specifies whether to create groups of all mesh entities of available dimensions or not. The created groups have names like "Group_On_All_Nodes", "Group_On_All_Faces", etc. A default state of this check-box can be set in :ref:`export_auto_groups_pref`. 
44         * **Automatically define space dimension** check-box specifies whether to define space dimension for export by mesh configuration or not. Usually the mesh is exported as a mesh in 3D space, just as it is in Mesh module. The mesh can be exported as a mesh of a lower dimension in the following cases, provided that this check-box is checked:
45                 * **1D**: if all mesh nodes lie on OX coordinate axis. 
46                 * **2D**: if all mesh nodes lie in XOY coordinate plane. 
47
48 **See Also** a sample TUI Script of an :ref:`tui_export_mesh` operation.
49
50