Salome HOME
Fix Redesign of SMESH documentation
[modules/smesh.git] / doc / salome / gui / SMESH / input / tui_creating_meshes.rst
1 .. _tui_creating_meshes_page:
2
3 ***************
4 Creating Meshes
5 ***************
6
7 .. contents:: `Table of contents`
8
9
10 First of all see :ref:`example_3d_mesh` which is an example of good python script style for Mesh module.
11
12
13 .. _construction_of_a_mesh:
14
15 Construction of a mesh
16 ======================
17
18 .. literalinclude:: ../../../examples/creating_meshes_ex01.py
19     :linenos:
20     :language: python
21
22 :download:`Download this script <../../../examples/creating_meshes_ex01.py>`
23
24 .. _tui_construction_submesh:
25
26 Construction of a sub-mesh
27 ==========================
28
29 .. literalinclude:: ../../../examples/creating_meshes_ex02.py
30     :linenos:
31     :language: python
32
33 :download:`Download this script <../../../examples/creating_meshes_ex02.py>`
34
35 .. _change_priority_of_submeshes_in_mesh:
36
37 Change priority of sub-meshes in mesh
38 =====================================
39
40 .. literalinclude:: ../../../examples/creating_meshes_ex03.py
41     :linenos:
42     :language: python
43
44 :download:`Download this script <../../../examples/creating_meshes_ex03.py>`
45
46 .. _tui_editing_while_meshing:
47
48 Intermediate edition while meshing
49 ==================================
50
51 .. literalinclude:: ../../../examples/a3DmeshOnModified2Dmesh.py
52     :linenos:
53     :language: python
54
55 :download:`Download this script <../../../examples/a3DmeshOnModified2Dmesh.py>`
56
57 .. _tui_editing_mesh:
58
59 Editing a mesh (i.e. changing hypotheses)
60 =========================================
61
62 .. literalinclude:: ../../../examples/creating_meshes_ex04.py
63     :linenos:
64     :language: python
65
66 :download:`Download this script <../../../examples/creating_meshes_ex04.py>`
67
68 .. _tui_export_mesh:
69
70 Export of a Mesh
71 ================
72
73 .. literalinclude:: ../../../examples/creating_meshes_ex05.py
74     :linenos:
75     :language: python
76
77 :download:`Download this script <../../../examples/creating_meshes_ex05.py>`
78
79 .. _how_to_mesh_a_cylinder_with_hexahedrons: 
80
81 How to mesh a cylinder with hexahedrons?
82 ========================================
83
84 The next script creates a hexahedral mesh on a cylinder. A picture below the script
85 demonstrates the resulting mesh.
86
87 .. literalinclude:: ../../../examples/creating_meshes_ex06.py
88     :linenos:
89     :language: python
90
91 :download:`Download this script <../../../examples/creating_meshes_ex06.py>`
92
93 .. image:: ../images/mesh_cylinder_hexa.png
94         :align: center                                                 
95
96
97 .. _tui_building_compound: 
98
99 Building a compound of meshes
100 =============================
101
102 .. literalinclude:: ../../../examples/creating_meshes_ex07.py
103     :linenos:
104     :language: python
105
106 :download:`Download this script <../../../examples/creating_meshes_ex07.py>`
107
108 .. _tui_copy_mesh:
109
110 Mesh Copying
111 ============
112
113 .. literalinclude:: ../../../examples/creating_meshes_ex08.py
114     :linenos:
115     :language: python
116
117 :download:`Download this script <../../../examples/creating_meshes_ex08.py>`
118