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
22 :download:`Download this script <../../../examples/creating_meshes_ex01.py>`
24 .. _tui_construction_submesh:
26 Construction of a sub-mesh
27 ==========================
29 .. literalinclude:: ../../../examples/creating_meshes_ex02.py
33 :download:`Download this script <../../../examples/creating_meshes_ex02.py>`
35 .. _change_priority_of_submeshes_in_mesh:
37 Change priority of sub-meshes in mesh
38 =====================================
40 .. literalinclude:: ../../../examples/creating_meshes_ex03.py
44 :download:`Download this script <../../../examples/creating_meshes_ex03.py>`
46 .. _tui_editing_while_meshing:
48 Intermediate edition while meshing
49 ==================================
51 .. literalinclude:: ../../../examples/a3DmeshOnModified2Dmesh.py
55 :download:`Download this script <../../../examples/a3DmeshOnModified2Dmesh.py>`
59 Editing a mesh (i.e. changing hypotheses)
60 =========================================
62 .. literalinclude:: ../../../examples/creating_meshes_ex04.py
66 :download:`Download this script <../../../examples/creating_meshes_ex04.py>`
73 .. literalinclude:: ../../../examples/creating_meshes_ex05.py
77 :download:`Download this script <../../../examples/creating_meshes_ex05.py>`
79 .. _how_to_mesh_a_cylinder_with_hexahedrons:
81 How to mesh a cylinder with hexahedrons?
82 ========================================
84 The next script creates a hexahedral mesh on a cylinder. A picture below the script
85 demonstrates the resulting mesh.
87 .. literalinclude:: ../../../examples/creating_meshes_ex06.py
91 :download:`Download this script <../../../examples/creating_meshes_ex06.py>`
93 .. image:: ../images/mesh_cylinder_hexa.png
97 .. _tui_building_compound:
99 Building a compound of meshes
100 =============================
102 .. literalinclude:: ../../../examples/creating_meshes_ex07.py
106 :download:`Download this script <../../../examples/creating_meshes_ex07.py>`
113 .. literalinclude:: ../../../examples/creating_meshes_ex08.py
117 :download:`Download this script <../../../examples/creating_meshes_ex08.py>`