Salome HOME
Merge branch 'V8_4_BR'
[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
19 .. _creating_meshes_ex01.py:
20
21 ``creating_meshes_ex01.py``
22
23 .. literalinclude:: ../../../examples/creating_meshes_ex01.py
24     :linenos:
25     :language: python
26
27 :download:`../../../examples/creating_meshes_ex01.py`
28
29 .. _tui_construction_submesh:
30
31 Construction of a sub-mesh
32 ==========================
33
34 .. _creating_meshes_ex02.py:
35
36 ``creating_meshes_ex02.py``
37
38 .. literalinclude:: ../../../examples/creating_meshes_ex02.py
39     :linenos:
40     :language: python
41
42 :download:`../../../examples/creating_meshes_ex02.py`
43
44 .. _change_priority_of_submeshes_in_mesh:
45
46 Change priority of sub-meshes in mesh
47 =====================================
48
49 .. _creating_meshes_ex03.py:
50
51 ``creating_meshes_ex03.py``
52
53 .. literalinclude:: ../../../examples/creating_meshes_ex03.py
54     :linenos:
55     :language: python
56
57 :download:`../../../examples/creating_meshes_ex03.py`
58
59 .. _tui_editing_while_meshing:
60
61 Intermediate edition while meshing
62 ==================================
63
64 .. _a3DmeshOnModified2Dmesh.py:
65
66 ``a3DmeshOnModified2Dmesh.py``
67
68 .. literalinclude:: ../../../examples/a3DmeshOnModified2Dmesh.py
69     :linenos:
70     :language: python
71
72 :download:`../../../examples/a3DmeshOnModified2Dmesh.py`
73
74 .. _tui_editing_mesh:
75
76 Editing a mesh (i.e. changing hypotheses)
77 =========================================
78
79 .. _creating_meshes_ex04.py:
80
81 ``creating_meshes_ex04.py``
82
83 .. literalinclude:: ../../../examples/creating_meshes_ex04.py
84     :linenos:
85     :language: python
86
87 :download:`../../../examples/creating_meshes_ex04.py`
88
89 .. _tui_export_mesh:
90
91 Export of a Mesh
92 ================
93
94 .. _creating_meshes_ex05.py:
95
96 ``creating_meshes_ex05.py``
97
98 .. literalinclude:: ../../../examples/creating_meshes_ex05.py
99     :linenos:
100     :language: python
101
102 :download:`../../../examples/creating_meshes_ex05.py`
103
104 .. _how_to_mesh_a_cylinder_with_hexahedrons: 
105
106 How to mesh a cylinder with hexahedrons?
107 ========================================
108
109 Here you can see an example of python script, creating a hexahedral
110 mesh on a cylinder. A picture below the source code of the script
111 demonstrates the resulting mesh.
112
113 .. _creating_meshes_ex06.py:
114
115 ``creating_meshes_ex06.py``
116
117 .. literalinclude:: ../../../examples/creating_meshes_ex06.py
118     :linenos:
119     :language: python
120
121 :download:`../../../examples/creating_meshes_ex06.py`
122
123 .. image:: ../images/mesh_cylinder_hexa.png
124         :align: center                                                 
125
126
127 .. _tui_building_compound: 
128
129 Building a compound of meshes
130 =============================
131
132 .. _creating_meshes_ex07.py:
133
134 ``creating_meshes_ex07.py``
135
136 .. literalinclude:: ../../../examples/creating_meshes_ex07.py
137     :linenos:
138     :language: python
139
140 :download:`../../../examples/creating_meshes_ex07.py`
141
142 .. _tui_copy_mesh:
143
144 Mesh Copying
145 ============
146
147 .. _creating_meshes_ex08.py:
148
149 ``creating_meshes_ex08.py``
150
151 .. literalinclude:: ../../../examples/creating_meshes_ex08.py
152     :linenos:
153     :language: python
154
155 :download:`../../../examples/creating_meshes_ex08.py`
156