Salome HOME
Increment version: 9.6.0
[modules/hexablock.git] / doc / tui_cyl.rst
1 :tocdepth: 3
2
3
4 .. _tuicylinder:
5
6 ========
7 Cylinder
8 ========
9
10 To add a cylinder, the following data have to be mentioned:
11
12 - the coordinates of the cylinder base
13 - the direction of the cylinder
14 - height and radius of the cylinder
15
16
17 Add a cylinder in the document::
18
19     cyl = doc.addCylinder(base, direction, radius, height)
20
21 Get the values of a cylinder::
22
23     ver = cyl.getBase()
24     vec = cyl.getDirection()
25     r = cyl.getRadius()
26     h = cyl.getHeigth()
27
28 Access to the cylinders of the document::
29
30     nc = doc.countCylinder()
31     cylk = doc.getCylinder(ind)
32
33 More operations: *Cylinder* inherits :ref:`Element <tuielement>`.
34
35 GUI command: :ref:`guicylinder`