]> SALOME platform Git repositories - modules/hexablock.git/blob - doc/tui_hemisphere_rind.rst
Salome HOME
Merge from V6_main 13/12/2012
[modules/hexablock.git] / doc / tui_hemisphere_rind.rst
1 :tocdepth: 3
2
3 .. _tuihemisphere:
4
5 =======================
6 Hemisphere Construction
7 =======================
8
9 .. _tuihemisphericalgrid:
10
11 Hemispherical Grid
12 ==================
13
14 To create an hemispherical grid in textual mode, you need the following arguments:
15      
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
25
26 ::
27
28         elts = doc.makeSphere (center, vx, vz, radius, radhole, orig, nrad, nang, nhaut)
29         
30 Operations on *elts*: :ref:`tuielements2`
31
32     
33 Code Sample
34 -----------
35
36 .. literalinclude:: test_doc/hemispherical_rind/hemispherical_grid.py
37    :emphasize-lines: 22
38    :linenos:
39
40 Result
41 ------
42
43 .. image:: _static/hemispherical_grid.png
44    :align: center
45
46
47 .. _tuiparthemisphericalgrid:
48
49 Partial Hemispherical Grid
50 ==========================
51
52 To create a partial hemispherical grid in textual mode, you need the following parameters:
53
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
64
65 ::
66
67         elts = doc.makePartSphere (center, vx, vz, radius, radhole, orig, angle, nrad, nang, nhaut)
68
69 Operations on *elts*: :ref:`tuielements2`
70
71         
72 Code Sample
73 -----------
74
75 .. literalinclude:: test_doc/hemispherical_rind/partial_hemispherical_grid.py
76    :emphasize-lines: 23,24
77    :linenos:
78
79 Result
80 ------
81
82 .. image:: _static/partial_hemispherical_grid.png
83    :align: center
84
85
86 .. _tuirindgrid:
87
88 Rind Grid
89 =========
90
91 To create a rind grid in textual mode, you need the following arguments:
92
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
103
104 ::
105
106         elts = doc.makeRind (center, vx, vz, radius, radint, radhole, orig, nrad, nang, nhaut)
107     
108 Operations on *elts*: :ref:`tuielements2`
109
110               
111 Code Sample
112 -----------
113
114 .. literalinclude:: test_doc/hemispherical_rind/rind_grid.py
115    :emphasize-lines: 23,24
116    :linenos:
117
118 Result
119 ------
120
121 .. image:: _static/rind_grid.png
122    :align: center
123
124
125 .. _tuipartrindgrid:
126
127 Partial Rind Grid
128 =================
129
130 To create a partial rind grid in textual mode, you need the following arguments:
131
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
143
144 ::
145
146         elts = doc.makePartRind (center, vx, vz, radius, radint, radhole, orig, angle, nrad, nang, nhaut)
147
148 Operations on *elts*: :ref:`tuielements2`
149
150                       
151 Code Sample
152 -----------
153
154 .. literalinclude:: test_doc/hemispherical_rind/partial_rind_grid.py
155    :emphasize-lines: 24,25
156    :linenos:
157
158 Result
159 ------
160
161 .. image:: _static/partial_rind_grid.png
162    :align: center
163
164
165 GUI command: :ref:`guihemisphere`