]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PrimitivesPlugin/doc/coneFeature.rst
Salome HOME
[bos #42437] fixed problem where sketch validation icons in toolbar were not activated
[modules/shaper.git] / src / PrimitivesPlugin / doc / coneFeature.rst
index beb1f612f1d42f2ea6e88f6cf82223a36fbf0369..68788cc4994fb209667adf3376354c3cd53cf67e 100644 (file)
@@ -1,3 +1,4 @@
+.. |Cone_button.icon|    image:: images/Cone_button.png
 
 Cone
 ====
@@ -7,20 +8,13 @@ Cone feature creates a cone solid.
 To create a Cone in the active part:
 
 #. select in the Main Menu *Primitives - > Cone* item  or
-#. click **Cone** button in the toolbar
-
-.. image:: images/Cone_button.png
-   :align: center
-
-.. centered::
-   **Cone** button 
+#. click |Cone_button.icon| **Cone** button in the toolbar
 
 The following property panel appears.
 
-.. image:: images/Cone.png
-  :align: center
+.. figure:: images/Cone.png
+   :align: center
 
-.. centered::
    Cone property panel
 
 Input fields:
@@ -32,9 +26,17 @@ Input fields:
    - **Top radius**;  
    - **Height**.
   
-**TUI Command**: *model.addCone(Part_doc, Point, Axis, Radius1, Radius2, Height)* 
+**TUI Command**:
+
+.. py:function:: model.addCone(Part_doc, Point, Axis, Radius1, Radius2, Height)
 
-**Arguments**:  Part + 1 vertex + 1 vector + 3 real values (base and top radii, heght).
+    :param part: The current part object.
+    :param object: Vertex.
+    :param object: Axis.
+    :param real: Radius 1.
+    :param real: Radius 2.
+    :param real: Height.
+    :return: Result object.
 
 Result
 """"""
@@ -43,10 +45,9 @@ If both radii are non-zero, then the cone will be truncated.
 
 If the radii are equal, the Cylinder will be created instead of cone.
 
-.. image:: images/Cone_res.png
-          :align: center
+.. figure:: images/Cone_res.png
+   :align: center
                   
-.. centered::
    Cone created  
 
 **See Also** a sample TUI Script of :ref:`tui_create_cone` operation.