Salome HOME
23586: [EDF] HYDRO: Copy mesh to new geometry
[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     :language: python
20
21 :download:`Download this script <../../../examples/creating_meshes_ex01.py>`
22
23 .. _tui_construction_submesh:
24
25 Construction of a sub-mesh
26 ==========================
27
28 .. literalinclude:: ../../../examples/creating_meshes_ex02.py
29     :language: python
30
31 :download:`Download this script <../../../examples/creating_meshes_ex02.py>`
32
33 .. _change_priority_of_submeshes_in_mesh:
34
35 Change priority of sub-meshes in mesh
36 =====================================
37
38 .. literalinclude:: ../../../examples/creating_meshes_ex03.py
39     :language: python
40
41 :download:`Download this script <../../../examples/creating_meshes_ex03.py>`
42
43 .. _tui_editing_while_meshing:
44
45 Intermediate edition while meshing
46 ==================================
47
48 .. literalinclude:: ../../../examples/a3DmeshOnModified2Dmesh.py
49     :language: python
50
51 :download:`Download this script <../../../examples/a3DmeshOnModified2Dmesh.py>`
52
53 .. _tui_editing_mesh:
54
55 Editing a mesh (i.e. changing hypotheses)
56 =========================================
57
58 .. literalinclude:: ../../../examples/creating_meshes_ex04.py
59     :language: python
60
61 :download:`Download this script <../../../examples/creating_meshes_ex04.py>`
62
63 .. _tui_export_mesh:
64
65 Export of a Mesh
66 ================
67
68 .. literalinclude:: ../../../examples/creating_meshes_ex05.py
69     :language: python
70
71 :download:`Download this script <../../../examples/creating_meshes_ex05.py>`
72
73 .. _how_to_mesh_a_cylinder_with_hexahedrons: 
74
75 How to mesh a cylinder with hexahedrons?
76 ========================================
77
78 The next script creates a hexahedral mesh on a cylinder. A picture below the script
79 demonstrates the resulting mesh.
80
81 .. literalinclude:: ../../../examples/creating_meshes_ex06.py
82     :language: python
83
84 :download:`Download this script <../../../examples/creating_meshes_ex06.py>`
85
86 .. image:: ../images/mesh_cylinder_hexa.png
87         :align: center                                                 
88
89
90 .. _tui_building_compound: 
91
92 Building a compound of meshes
93 =============================
94
95 .. literalinclude:: ../../../examples/creating_meshes_ex07.py
96     :language: python
97
98 :download:`Download this script <../../../examples/creating_meshes_ex07.py>`
99
100 .. _tui_copy_mesh:
101
102 Mesh Copying
103 ============
104
105 .. literalinclude:: ../../../examples/creating_meshes_ex08.py
106     :language: python
107
108 :download:`Download this script <../../../examples/creating_meshes_ex08.py>`
109