Salome HOME
Correct documentation bugs, adapt for 'Read The Docs' theme (bos #18858)
[modules/shaper.git] / src / PrimitivesPlugin / doc / boxFeature.rst
index b1eb661dd97ab59aa0b4f64091c1bdfe55814e3d..a8d641e8c14f1b309755ca8f05ad0bcdb1e97cd4 100644 (file)
@@ -3,32 +3,33 @@
 Box
 ===
 
-The feature Box creates a box solid.
+.. |box.icon|    image:: images/box.png
+
+Box feature creates a box solid.
 
 To create a Box in the active part:
 
 #. select in the Main Menu *Primitives - > Box* item  or
-#. click **Box** button in the toolbar:
-
-.. image:: images/box.png
-   :align: center
-
-.. centered::
-   **Box**  button 
+#. click |box.icon| **Box** button in the toolbar:
 
 There are 2 algorithms for creation of a Box:
 
-.. image:: images/box_2pt_32x32.png
+.. image:: images/box_dxyz_32x32.png
    :align: left
+   :height: 24px
+
 **By dimensions** 
 
-.. image:: images/box_dxyz_32x32.png
+.. image:: images/box_2pt_32x32.png
    :align: left
+   :height: 24px
+
 **By two points** 
 
+--------------------------------------------------------------------------------
 
 By dimensions
-"""""""""""""
+-------------
 
 Box is created by dimensions along X, Y, Z axis starting from the origin.
 
@@ -37,15 +38,30 @@ Box is created by dimensions along X, Y, Z axis starting from the origin.
 
 Input fields:
 
-- **DX**, **DY**, **DZ** define sizes of the box along corresponding coordinate axes. 
+- **DX**, **DY**, **DZ** define dimensions of the box along the corresponding coordinate axes. 
+
+**TUI Command**:
 
-**TUI Command**:  *model.addBox(Part_doc, DX, DY, DZ)*
+.. py:function:: model.addBox(Part_doc, DX, DY, DZ)
   
-**Arguments**:    Part + 3 real values (dimensions at origin).
+    :param part: The current part object.
+    :param real: Size along X.
+    :param real: Size along Y.
+    :param real: Size along Z.
+    :return: Result object.
+
+Result
+""""""
 
+A solid box based on the origin of coordinates and with edges parallel to the coordinate axes.
+
+.. image:: images/Box1.png
+          :align: center
+
+**See Also** a sample TUI Script of a :ref:`tui_create_boxdim` operation.
 
 By two points
-"""""""""""""
+-------------
 
 Box is created by two points of the box diagonal.
 
@@ -54,21 +70,28 @@ Box is created by two points of the box diagonal.
 
 Input fields:
 
-- **Point 1** and **Point 2**  define diagonal points of the box selected in 3D OCC  viewer or object browser.
+- **Point 1** and **Point 2**  define diagonal points of the box selected in 3D OCC viewer or object browser.
   
-**TUI Command**:  *model.addBox(Part_doc, point1, point2)*
+**TUI Command**:
+
+.. py:function:: model.addBox(Part_doc, point1, point2)
+
+    :param part: The current part object.
+    :param object: First vertex of diagonal.
+    :param object: Second vertex of diagonal.
+    :return: Result object.
 
 **Arguments**:   Part + 2 selected points (opposite vertices of the box)
 
 Result
 """"""
 
-The edges of the created boxes are parallel to the coordinate axes.
+A solid box based on two points and with edges parallel to the coordinate axes.
 
-.. image:: images/Boxes.png
+.. image:: images/Box2.png
           :align: center
                   
 .. centered::
-   Boxes created  
+   Created boxes
 
-**See Also** a sample TUI Script of a :ref:`tui_create_box` operation.
\ No newline at end of file
+**See Also** a sample TUI Script of :ref:`tui_create_boxpnt` operation.