5 The feature Cylinder creates a cylinder solid.
7 To create a Cylinder in the active part:
9 #. select in the Main Menu *Primitives - > Cylinder* item or
10 #. click **Cylinder** button in the toolbar
12 .. image:: images/Cylinder_button.png
18 There are 2 algorithms for creation of a Cylinder:
20 .. image:: images/cylinder_32x32.png
22 **Cylinder** creates a cylinder.
24 .. image:: images/cylinder_portion_32x32.png
26 **Portion of cylinder** creates one segment of cylinder.
31 .. image:: images/Cylinder.png
35 **Cylinder** property panel
39 - **Point** defines center of the cylinder base selected in 3D OCC viewer or object browser;
40 - **Vector** defines the axis of the cylinder selected in 3D OCC viewer or object browser;
47 * *model.addCylinder(Part_doc, Point, Axis, Radius, Height)*
49 **Arguments**: Part + 1 vertex +1 vector + 2 real values (radius, height).
54 .. image:: images/Portion_cylinder.png
58 **Portion of cylinder** property panel
60 Input fields for ***Portion of cylinder** tab includes in addition **Angle** to create a portion of cylinder.
64 * *model.addCylinder(Part_doc, Point, Axis, Radius, Height,Angle)*
66 **Arguments**: 1 Part + 1 vertex +1 vector + 3 real values (radius, height and angle).
71 Example is shown below.
73 .. image:: images/Cylinders.png
79 **See Also** a sample TUI Script of a :ref:`tui_create_cylinder` operation.