5 =======================
6 Hemisphere Construction
7 =======================
9 .. _tuihemisphericalgrid:
14 To create an hemispherical grid in textual mode, you need the following arguments:
16 - center : center coordinates of the sphere
17 - vx : normal vector to the surface of the cross section
18 - vz : axes of the hole
19 - radius : radius size of the sphere
20 - radhole: radius size of the hole
21 - orig : coordinates of a point on the surface of the cross section
22 - nrad : number of hexahedra from the center of the sphere
23 - nang : number of hexahedra along the perimeter of the sphere
24 - nhaut : number of hexahedra on the height of the sphere
28 elts = doc.makeSphere (center, vx, vz, radius, radhole, orig, nrad, nang, nhaut)
30 Operations on *elts*: :ref:`tuielements2`
36 .. literalinclude:: test_doc/hemispherical_rind/hemispherical_grid.py
43 .. image:: _static/hemispherical_grid.png
47 .. _tuiparthemisphericalgrid:
49 Partial Hemispherical Grid
50 ==========================
52 To create a partial hemispherical grid in textual mode, you need the following parameters:
54 - center : center coordinates of the sphere
55 - vx : normal vector to the surface of the cross section
56 - vz : axes of the hole
57 - radius : radius size of the sphere
58 - radhole: radius size of the hole
59 - orig : coordinates of a point on the surface of the cross section
60 - angle : fill this field to customize the section (value in degree)
61 - nrad : number of hexahedra from the center of the sphere
62 - nang : number of hexahedra along the perimeter of the sphere
63 - nhaut : number of hexahedra on the height of the sphere
67 elts = doc.makePartSphere (center, vx, vz, radius, radhole, orig, angle, nrad, nang, nhaut)
69 Operations on *elts*: :ref:`tuielements2`
75 .. literalinclude:: test_doc/hemispherical_rind/partial_hemispherical_grid.py
76 :emphasize-lines: 23,24
82 .. image:: _static/partial_hemispherical_grid.png
91 To create a rind grid in textual mode, you need the following arguments:
93 - center : center coordinates of the sphere
94 - vx : normal vector to the surface of the cross section
95 - vz : axes of the hole
96 - radius : radius size of the sphere
97 - internal radius: fill this field to create rind
98 - radhole: radius size of the hole
99 - orig : coordinates of a point on the surface of the cross section
100 - nrad : number of hexahedra from the center of the sphere
101 - nang : number of hexahedra along the perimeter of the sphere
102 - nhaut : number of hexahedra on the height of the sphere
106 elts = doc.makeRind (center, vx, vz, radius, radint, radhole, orig, nrad, nang, nhaut)
108 Operations on *elts*: :ref:`tuielements2`
114 .. literalinclude:: test_doc/hemispherical_rind/rind_grid.py
115 :emphasize-lines: 23,24
121 .. image:: _static/rind_grid.png
130 To create a partial rind grid in textual mode, you need the following arguments:
132 - center : center coordinates of the sphere
133 - vx : normal vector to the surface of the cross section
134 - vz : axes of the hole
135 - radius : radius size of the sphere
136 - radint : fill this field to create rind
137 - radhole: radius size of the hole
138 - orig : coordinates of a point on the surface of the cross section
139 - angle : fill this field to customize the section (value in degree)
140 - nrad : number of hexahedra from the center of the sphere
141 - nang : number of hexahedra along the perimeter of the sphere
142 - nhaut : number of hexahedra on the height of the sphere
146 elts = doc.makePartRind (center, vx, vz, radius, radint, radhole, orig, angle, nrad, nang, nhaut)
148 Operations on *elts*: :ref:`tuielements2`
154 .. literalinclude:: test_doc/hemispherical_rind/partial_rind_grid.py
155 :emphasize-lines: 24,25
161 .. image:: _static/partial_rind_grid.png
165 GUI command: :ref:`guihemisphere`