1 .. _tui_creating_meshes_page:
7 .. contents:: `Table of contents`
10 First of all see :ref:`example_3d_mesh` which is an example of good python script style for Mesh module.
13 .. _construction_of_a_mesh:
15 Construction of a mesh
16 ======================
18 .. literalinclude:: ../../examples/creating_meshes_ex01.py
21 :download:`Download this script <../../examples/creating_meshes_ex01.py>`
23 .. _tui_construction_submesh:
25 Construction of a sub-mesh
26 ==========================
28 .. literalinclude:: ../../examples/creating_meshes_ex02.py
31 :download:`Download this script <../../examples/creating_meshes_ex02.py>`
33 .. _change_priority_of_submeshes_in_mesh:
35 Change priority of sub-meshes in mesh
36 =====================================
38 .. literalinclude:: ../../examples/creating_meshes_ex03.py
41 :download:`Download this script <../../examples/creating_meshes_ex03.py>`
43 .. _tui_editing_while_meshing:
45 Intermediate edition while meshing
46 ==================================
48 .. literalinclude:: ../../examples/a3DmeshOnModified2Dmesh.py
51 :download:`Download this script <../../examples/a3DmeshOnModified2Dmesh.py>`
55 Editing a mesh (i.e. changing hypotheses)
56 =========================================
58 .. literalinclude:: ../../examples/creating_meshes_ex04.py
61 :download:`Download this script <../../examples/creating_meshes_ex04.py>`
68 .. literalinclude:: ../../examples/creating_meshes_ex05.py
71 :download:`Download this script <../../examples/creating_meshes_ex05.py>`
73 .. _how_to_mesh_a_cylinder_with_hexahedrons:
75 How to mesh a cylinder with hexahedrons?
76 ========================================
78 The next script creates a hexahedral mesh on a cylinder. A picture below the script
79 demonstrates the resulting mesh.
81 .. literalinclude:: ../../examples/creating_meshes_ex06.py
84 :download:`Download this script <../../examples/creating_meshes_ex06.py>`
86 .. image:: ../images/mesh_cylinder_hexa.png
90 .. _tui_building_compound:
92 Building a compound of meshes
93 =============================
95 .. literalinclude:: ../../examples/creating_meshes_ex07.py
98 :download:`Download this script <../../examples/creating_meshes_ex07.py>`
105 .. literalinclude:: ../../examples/creating_meshes_ex08.py
108 :download:`Download this script <../../examples/creating_meshes_ex08.py>`
110 .. _tui_create_dual_mesh:
115 .. literalinclude:: ../../examples/create_dual_mesh.py
118 :download:`Download this script <../../examples/create_dual_mesh.py>`
120 .. _tui_create_parallel_mesh:
122 Creating Parallel Mesh
123 ======================
125 .. literalinclude:: ../../examples/creating_parallel_mesh.py
128 :download:`Download this script <../../examples/creating_parallel_mesh.py>`