3 \page hexoticplugin_python_interface_page Python Interface
5 Python package HexoticPLUGIN defines several classes, destined for creation of the 3D meshes.
7 Hexotic meshing plugin dynamically adds several methods to the smesh.Mesh class to create meshing algorithms.
9 Below you can see an example of usage of the HexoticPlugin Python API for mesh generation:
13 -# \ref tui_hexotic_basic
14 -# \ref tui_hexotic_sd_mode
15 -# \ref tui_hexotic_sd_mode1
16 -# \ref tui_hexotic_sd_mode2
17 -# \ref tui_hexotic_sd_mode3
18 -# \ref tui_hexotic_sd_mode4
20 \section tui_hexotic_basic Construction of Mesh using Hexotic algorithm
22 <h2>Example of mesh generation with Hexotic algorithm:</h2>
23 \tui_script{hexoticdemo.py}
25 \image html hexotic_basic_subdivisions_4_8.png Left: Hexotic mesh without hypothesis, right: Hexotic mesh with an hypothesis defined by minl=4 and maxl=8
27 \ref tui_hexotic "Back to top"
29 \section tui_hexotic_sd_mode Effect of the sub-domain mode
31 This example illustrates the sub-domain mode of Hexotic.
33 \subsection tui_hexotic_sd_mode1 Sub-domain mode = 1
35 <h2>Example of sub-domain mode 1 with Hexotic algorithm:</h2>
36 \tui_script{hexoticsubdom1.py}
38 \image html hexotic_sd_mode_1.png Hexotic mesh of a box cut by a holed sphere ( sd = 1 )
40 \ref tui_hexotic "Back to top"
42 \subsection tui_hexotic_sd_mode2 Sub-domain mode = 2
44 <h2>Example of sub-domain mode 2 with Hexotic algorithm:</h2>
45 \tui_script{hexoticsubdom2.py}
47 \image html hexotic_sd_mode_2.png Hexotic mesh of a box cut by a holed sphere ( sd = 2 )
49 \ref tui_hexotic "Back to top"
51 \subsection tui_hexotic_sd_mode3 Sub-domain mode = 3
53 <h2>Example of sub-domain mode 3 with Hexotic algorithm:</h2>
54 \tui_script{hexoticsubdom3.py}
56 \image html hexotic_sd_mode_3.png Hexotic mesh of a box cut by a holed sphere ( sd = 3 )
58 \ref tui_hexotic "Back to top"
60 \subsection tui_hexotic_sd_mode4 Sub-domain mode = 4
62 <h2>Example of sub-domain mode 4 with Hexotic algorithm:</h2>
63 \tui_script{hexoticsubdom4.py}
65 \image html hexotic_sd_mode_4.png Hexotic mesh of a box cut by a plane ( On the left, sd = 3: the internal surface is ignored ; on the right sd = 4: all sub-domains are meshed )
67 \ref tui_hexotic "Back to top"