Salome HOME
Cosmetics. Move XML files to the separate folder inside a corresponding project in VS.
[modules/shaper.git] / src / SketchPlugin / doc / projectionFeature.rst
index a1802206ff512d2fdfd2d510a9e26cd1adce272f..a02299b6da3cc4df71616d07cabfe554b6d37c88 100644 (file)
@@ -1,3 +1,4 @@
+.. |projection.icon|    image:: images/Projection.png
 
 Projection
 ==========
@@ -8,20 +9,13 @@ Projection
 To create a Projection in the active Sketch:
 
 #. select in the Main Menu *Sketch - > Projection* item  or
-#. click **Projection** button in Sketch toolbar:
-
-.. image:: images/projection.png
-   :align: center
-
-.. centered::
-   **Projection**  button
+#. click |projection.icon| **Projection** button in Sketch toolbar:
 
 Property panel:
 
-.. image:: images/Projection_panel.png
-  :align: center
+.. figure:: images/Projection_panel.png
+   :align: center
 
-.. centered::
    Projection
 
 Input fields:
@@ -29,25 +23,28 @@ Input fields:
 - **Object** is the 3D object (edge or vertex) to project onto the sketch plane.
 - **Include into the sketch result** option defines whether to include the projection line into the sketch result.
 
-**TUI Command**:
+**TUI Commands**:
 
-- *Sketch_1.addProjection(EdgeOrVertex, IncludeIntoResult)*
+.. py:function:: Sketch_1.addProjection(EdgeOrVertex, IncludeIntoResult)
 
-  **Arguments**: edge or vertex and include into the result flag
+    :param object: Edge or vertex.
+    :param boolean: Include into the result flag.
+    :return: Result object.
 
-- *Sketch_1.addProjection(EdgeOrVertexName, IncludeIntoResult)*
+.. py:function:: Sketch_1.addProjection(EdgeOrVertexName, IncludeIntoResult)
 
-  **Arguments**: edge or vertex name and include into the result flag
+    :param object: Edge or vertex name.
+    :param boolean: Include into the result flag.
+    :return: Result object.
 
 Result
 """"""
 
 Created Projection appears in the view.
 
-.. image:: images/Projection_res.png
-          :align: center
+.. figure:: images/Projection_res.png
+   :align: center
 
-.. centered::
    Created projection (purple line)
 
-**See Also** a sample TUI Script of :ref:`tui_create_projection` operation.
\ No newline at end of file
+**See Also** a sample TUI Script of :ref:`tui_create_projection` operation.