]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/BuildPlugin/doc/solidFeature.rst
Salome HOME
Merge remote-tracking branch 'remotes/origin/EDF_2020_Lot2'
[modules/shaper.git] / src / BuildPlugin / doc / solidFeature.rst
index 7af0590f7fa0a09883e2b2357456c39fd98523f5..69fa7a34108396a63869833bbee6cffef31b7d52 100644 (file)
@@ -1,3 +1,4 @@
+.. |feature_solid.icon|    image:: images/feature_solid.png
 
 Solid
 =====
@@ -7,20 +8,13 @@ Solid feature creates a solid using faces already existing in other objects.
 To create a solid in the active part:
 
 #. select in the Main Menu *Build - > Solid* item  or
-#. click **Solid** button in the toolbar
-
-.. image:: images/feature_solid.png
-  :align: center
-
-.. centered::
-  **Solid** button
+#. click |feature_solid.icon| **Solid** button in the toolbar
 
 The following property panel will be opened:
 
-.. image:: images/Solid.png
+.. figure:: images/Solid.png
   :align: center
 
-.. centered::
   Create a solid
   
 Select one or several faces in the viewer. The selected faces have to define a closed volume.
@@ -29,19 +23,22 @@ Select one or several faces in the viewer. The selected faces have to define a c
 
 **Cancel** button cancels the operation. 
 
-**TUI Command**:  *model.addSolid(Part_doc, Shapes)*
+**TUI Command**:
+
+.. py:function:: model.addSolid(Part_doc, Shapes)
 
-**Arguments**:   Part document + list of shapes.
+    :param part: The current part object.
+    :param list: A list of shapes.
+    :return: Result object.
 
 Result
 """"""
 
 The result of the operation will be a solid created from the selected shapes:
 
-.. image:: images/CreateSolid.png
+.. figure:: images/CreateSolid.png
   :align: center
 
-.. centered::
   Result of the operation.
 
 **See Also** a sample TUI Script of :ref:`tui_create_solid` operation.