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 .. image:: images/cylinder_32x32.png
17 **Cylinder** creates a cylinder.
19 .. image:: images/cylinder_portion_32x32.png
21 **Portion of cylinder** creates one segment of a cylinder.
26 .. image:: images/Cylinder.png
30 **Cylinder** property panel
34 - **Point** defines the center of the cylinder base selected in 3D OCC viewer or object browser;
35 - **Vector** defines the axis of the cylinder selected in 3D OCC viewer or object browser;
42 .. py:function:: model.addCylinder(Part_doc, Point, Axis, Radius, Height)
44 :param part: The current part object.
45 :param object: Vertex.
49 :return: Result object.
54 An example is shown below.
56 .. image:: images/Cylinder1.png
62 **See Also** a sample TUI Script of :ref:`tui_create_cylinder` operation.
67 .. image:: images/Portion_cylinder.png
71 **Portion of cylinder** property panel
73 Input fields for ***Portion of cylinder** tab include **Angle** defining a portion of cylinder.
77 .. py:function:: model.addCylinder(Part_doc, Point, Axis, Radius, Height,Angle)
79 :param part: The current part object.
80 :param object: Vertex.
85 :return: Result object.
90 An example is shown below.
92 .. image:: images/Cylinder2.png
98 **See Also** a sample TUI Script of :ref:`tui_create_cylportion` operation.