]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Help files update
authorGrigory ZHIVOTOVSKY <gzy@salomex.nnov.opencascade.com>
Mon, 13 Aug 2018 12:45:51 +0000 (15:45 +0300)
committerGrigory ZHIVOTOVSKY <gzy@salomex.nnov.opencascade.com>
Mon, 13 Aug 2018 12:45:51 +0000 (15:45 +0300)
.salomeport [new file with mode: 0644]
src/PrimitivesPlugin/doc/TUI_boxFeature.rst [new file with mode: 0644]
src/PrimitivesPlugin/doc/boxFeature.rst
src/PrimitivesPlugin/doc/examples/box.py [new file with mode: 0644]
src/PrimitivesPlugin/doc/images/Box_2points.png [new file with mode: 0644]
src/PrimitivesPlugin/doc/images/Box_button.png [new file with mode: 0644]
src/PrimitivesPlugin/doc/images/Box_dimensions.png [new file with mode: 0644]

diff --git a/.salomeport b/.salomeport
new file mode 100644 (file)
index 0000000..eafc999
--- /dev/null
@@ -0,0 +1 @@
+2811
\ No newline at end of file
diff --git a/src/PrimitivesPlugin/doc/TUI_boxFeature.rst b/src/PrimitivesPlugin/doc/TUI_boxFeature.rst
new file mode 100644 (file)
index 0000000..78ae3ad
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_box:
+
+Create Box
+==========
+
+.. literalinclude:: examples/box.py
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/box.py>` 
+   
index 7ae1d7253e826f9ece58170f215871a7597c33b8..84cf765e8469ecc51828fd2c463af288b10b08e5 100644 (file)
@@ -1,17 +1,53 @@
 
+
 Box
 ===
 
+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/Box1.png
-  :align: center
+.. image:: images/Box_button.png
+   :align: center
 
 .. centered::
-  Create a box by dimensions
+   **Box**  button 
 
+There are 2 algorithms for creation of a Box:
+
+.. image:: images/Box_dimensions.png
+   :align: center
+       
+.. centered::
+   **By dimensions**
 
-.. image:: images/Box2.png
-  :align: center
+and 
 
+.. image:: images/Box_2points.png
+          :align: center
+                  
 .. centered::
-  Create a box by two points
+   **By two points**  
+
+
+The description of input fields for **By dimensions** tab is given below:
+
+- **DX**, **DY**, **DZ** specify box dimensions along the coordinate axes for box with corner coinciding with coordinate origin.
+
+The description of input fields for **By two points** tab is given below:
+
+- **Point 1** and **Point 2** define the opposite corners of the box.
+
+**Apply** button creates box with defined parameters.
+  
+**Cancel** button cancels operation. 
+
+The Result of operation will be a SOLID. The edges of the box will be parallel to the coordinate axes.
+
+Name is assigned automatically:
+    
+* **Box_1**, **Box_2**, ... to Feature;
+* **Box_1_1**, **Box_2_1**, ... to Result.
+
+**See Also** a sample TUI Script of a :ref:`tui_create_box` operation.
diff --git a/src/PrimitivesPlugin/doc/examples/box.py b/src/PrimitivesPlugin/doc/examples/box.py
new file mode 100644 (file)
index 0000000..0b9b5e6
--- /dev/null
@@ -0,0 +1,14 @@
+# -*- coding: utf-8 -*-
+
+from salome.shaper import model
+
+model.begin()
+partSet = model.moduleDocument()
+Part_1 = model.addPart(partSet)
+Part_1_doc = Part_1.document()
+Box_1 = model.addBox(Part_1_doc, 10, 10, 10)
+Point_2 = model.addPoint(Part_1_doc, 20, 30, 40)
+Point_3 = model.addPoint(Part_1_doc, 40, 40, 50)
+Box_2 = model.addBox(Part_1_doc, model.selection("VERTEX", "Point_1"), model.selection("VERTEX", "Point_2"))
+model.do()
+model.end()
diff --git a/src/PrimitivesPlugin/doc/images/Box_2points.png b/src/PrimitivesPlugin/doc/images/Box_2points.png
new file mode 100644 (file)
index 0000000..d5131cd
Binary files /dev/null and b/src/PrimitivesPlugin/doc/images/Box_2points.png differ
diff --git a/src/PrimitivesPlugin/doc/images/Box_button.png b/src/PrimitivesPlugin/doc/images/Box_button.png
new file mode 100644 (file)
index 0000000..aaa604a
Binary files /dev/null and b/src/PrimitivesPlugin/doc/images/Box_button.png differ
diff --git a/src/PrimitivesPlugin/doc/images/Box_dimensions.png b/src/PrimitivesPlugin/doc/images/Box_dimensions.png
new file mode 100644 (file)
index 0000000..4ce8d31
Binary files /dev/null and b/src/PrimitivesPlugin/doc/images/Box_dimensions.png differ