1 .. |Cylinder_button.icon| image:: images/Cylinder_button.png
6 Cylinder feature creates a cylinder solid.
8 To create a Cylinder in the active part:
10 #. select in the Main Menu *Primitives - > Cylinder* item or
11 #. click |Cylinder_button.icon| **Cylinder** button in the toolbar
13 There are 2 algorithms for creation of a Cylinder:
15 .. figure:: images/cylinder_32x32.png
19 **Cylinder** creates a cylinder.
21 .. figure:: images/cylinder_portion_32x32.png
25 **Portion of cylinder** creates one segment of a cylinder.
27 --------------------------------------------------------------------------------
32 .. figure:: images/Cylinder.png
35 **Cylinder** property panel
39 - **Point** defines the 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 .. py:function:: model.addCylinder(Part_doc, Point, Axis, Radius, Height)
49 :param part: The current part object.
50 :param object: Vertex.
54 :return: Result object.
59 An example is shown below.
61 .. figure:: images/Cylinder1.png
66 **See Also** a sample TUI Script of :ref:`tui_create_cylinder` operation.
71 .. figure:: images/Portion_cylinder.png
74 **Portion of cylinder** property panel
76 Input fields for ***Portion of cylinder** tab include **Angle** defining a portion of cylinder.
80 .. py:function:: model.addCylinder(Part_doc, Point, Axis, Radius, Height,Angle)
82 :param part: The current part object.
83 :param object: Vertex.
88 :return: Result object.
93 An example is shown below.
95 .. figure:: images/Cylinder2.png
100 **See Also** a sample TUI Script of :ref:`tui_create_cylportion` operation.