]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Create Construction plugin help pages
authorvsv <vsv@opencascade.com>
Wed, 15 Aug 2018 15:45:36 +0000 (18:45 +0300)
committervsv <vsv@opencascade.com>
Wed, 15 Aug 2018 15:45:36 +0000 (18:45 +0300)
12 files changed:
src/GDMLPlugin/doc/TUI_coneFeature.rst [new file with mode: 0644]
src/GDMLPlugin/doc/TUI_ellipsoidFeature.rst [new file with mode: 0644]
src/GDMLPlugin/doc/coneFeature.rst
src/GDMLPlugin/doc/ellipsoidFeature.rst
src/GDMLPlugin/doc/examples/cone.py [new file with mode: 0644]
src/GDMLPlugin/doc/examples/ellipsoid.py [new file with mode: 0644]
src/GDMLPlugin/doc/images/Cone_panel.png [new file with mode: 0644]
src/GDMLPlugin/doc/images/CreatedCone.png [new file with mode: 0644]
src/GDMLPlugin/doc/images/CreatedEllipsoid.png [new file with mode: 0644]
src/GDMLPlugin/doc/images/Ellipsoid.png [new file with mode: 0644]
src/GDMLPlugin/doc/images/cone_btn.png [new file with mode: 0644]
src/GDMLPlugin/doc/images/ellips_btn.png [new file with mode: 0644]

diff --git a/src/GDMLPlugin/doc/TUI_coneFeature.rst b/src/GDMLPlugin/doc/TUI_coneFeature.rst
new file mode 100644 (file)
index 0000000..d8268fc
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_conesegment:
+
+Create Cone
+===========
+
+.. literalinclude:: examples/cone.py
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/cone.py>` 
+   
diff --git a/src/GDMLPlugin/doc/TUI_ellipsoidFeature.rst b/src/GDMLPlugin/doc/TUI_ellipsoidFeature.rst
new file mode 100644 (file)
index 0000000..54b85d6
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_ellipsoid:
+
+Create Cone
+===========
+
+.. literalinclude:: examples/ellipsoid.py
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/ellipsoid.py>` 
+   
index 5041deccfe9bf82b9c6347a6742def368f7e11c6..9760c29b99441b632cb5530f0ae1f700b7d2ba41 100644 (file)
@@ -1,3 +1,36 @@
 
 Cone
 ====
+
+To create a Cone in the active part:
+
+#. select in the Main Menu *GDML - > Cone segment* item  or
+#. click **Cone segment** button in the toolbar.
+
+.. image:: images/cone_btn.png
+   :align: center
+
+.. centered::
+   **Cone segment**  button 
+
+The following property panel will be opened:
+
+.. image:: images/Cone_panel.png
+   :align: center
+       
+.. centered::
+   **Cone property panel**
+
+**TUI Command**:  *model.addConeSegment(Part_doc, 7, 11, 5, 8, 12, 0 , 270)*
+  
+**Arguments**:    Part + Rmin of base + Rmax of base + Rmin of top + Rmax of top + height + start angle + end angle.
+
+The Result of the operation will be a SOLID.
+
+.. image:: images/CreatedCone.png
+          :align: center
+                  
+.. centered::
+   Cone created
+
+**See Also** a sample TUI Script of a :ref:`tui_create_conesegment` operation.
index 65ce69e85673037f037403feed87eb7c58e5b92b..a8bd95158674bc695cadb40939aad05a5f3c46d8 100644 (file)
@@ -1,3 +1,36 @@
 
 Ellipsoid
 =========
+
+To create a Ellipsoid in the active part:
+
+#. select in the Main Menu *GDML - > Ellipsoid* item  or
+#. click **Ellipsoid** button in the toolbar.
+
+.. image:: images/ellips_btn.png
+   :align: center
+
+.. centered::
+   **Ellipsoid**  button 
+
+The following property panel will be opened:
+
+.. image:: images/Ellipsoid.png
+   :align: center
+       
+.. centered::
+   **Ellipsoid property panel**
+
+**TUI Command**:  *model.addEllipsoid(Part_doc, 10, 20, 40)*
+  
+**Arguments**:    Part + ax + by + cz.
+
+The Result of the operation will be a SOLID.
+
+.. image:: images/CreatedEllipsoid.png
+          :align: center
+                  
+.. centered::
+   Ellipsoid created
+
+**See Also** a sample TUI Script of a :ref:`tui_create_ellipsoid` operation.
diff --git a/src/GDMLPlugin/doc/examples/cone.py b/src/GDMLPlugin/doc/examples/cone.py
new file mode 100644 (file)
index 0000000..4ad1106
--- /dev/null
@@ -0,0 +1,11 @@
+# -*- coding: utf-8 -*-
+
+from salome.shaper import model
+
+model.begin()
+partSet = model.moduleDocument()
+Part_1 = model.addPart(partSet)
+Part_1_doc = Part_1.document()
+ConeSegment_1 = model.addConeSegment(Part_1_doc, 7, 11, 5, 8, 12, 0 , 270)
+model.do()
+model.end()
diff --git a/src/GDMLPlugin/doc/examples/ellipsoid.py b/src/GDMLPlugin/doc/examples/ellipsoid.py
new file mode 100644 (file)
index 0000000..68ada19
--- /dev/null
@@ -0,0 +1,11 @@
+# -*- coding: utf-8 -*-
+
+from salome.shaper import model
+
+model.begin()
+partSet = model.moduleDocument()
+Part_1 = model.addPart(partSet)
+Part_1_doc = Part_1.document()
+Ellipsoid_1 = model.addEllipsoid(Part_1_doc, 10, 20, 40)
+model.do()
+model.end()
diff --git a/src/GDMLPlugin/doc/images/Cone_panel.png b/src/GDMLPlugin/doc/images/Cone_panel.png
new file mode 100644 (file)
index 0000000..8e5a92b
Binary files /dev/null and b/src/GDMLPlugin/doc/images/Cone_panel.png differ
diff --git a/src/GDMLPlugin/doc/images/CreatedCone.png b/src/GDMLPlugin/doc/images/CreatedCone.png
new file mode 100644 (file)
index 0000000..be2bb3a
Binary files /dev/null and b/src/GDMLPlugin/doc/images/CreatedCone.png differ
diff --git a/src/GDMLPlugin/doc/images/CreatedEllipsoid.png b/src/GDMLPlugin/doc/images/CreatedEllipsoid.png
new file mode 100644 (file)
index 0000000..5134071
Binary files /dev/null and b/src/GDMLPlugin/doc/images/CreatedEllipsoid.png differ
diff --git a/src/GDMLPlugin/doc/images/Ellipsoid.png b/src/GDMLPlugin/doc/images/Ellipsoid.png
new file mode 100644 (file)
index 0000000..c0b5c4f
Binary files /dev/null and b/src/GDMLPlugin/doc/images/Ellipsoid.png differ
diff --git a/src/GDMLPlugin/doc/images/cone_btn.png b/src/GDMLPlugin/doc/images/cone_btn.png
new file mode 100644 (file)
index 0000000..12378d4
Binary files /dev/null and b/src/GDMLPlugin/doc/images/cone_btn.png differ
diff --git a/src/GDMLPlugin/doc/images/ellips_btn.png b/src/GDMLPlugin/doc/images/ellips_btn.png
new file mode 100644 (file)
index 0000000..4af212b
Binary files /dev/null and b/src/GDMLPlugin/doc/images/ellips_btn.png differ