]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Documentation
authordbv <dbv@opencascade.com>
Thu, 4 Oct 2018 11:39:32 +0000 (14:39 +0300)
committerdbv <dbv@opencascade.com>
Fri, 5 Oct 2018 08:43:50 +0000 (11:43 +0300)
65 files changed:
src/FeaturesPlugin/doc/TUI_extrusionByBoundingPlanes.rst [new file with mode: 0644]
src/FeaturesPlugin/doc/TUI_extrusionBySizes.rst [new file with mode: 0644]
src/FeaturesPlugin/doc/TUI_extrusionCutByBoundingPlanes.rst [new file with mode: 0644]
src/FeaturesPlugin/doc/TUI_extrusionCutBySizes.rst [new file with mode: 0644]
src/FeaturesPlugin/doc/TUI_extrusionFeature.rst [deleted file]
src/FeaturesPlugin/doc/TUI_extrusionFuseByBoundingPlanes.rst [new file with mode: 0644]
src/FeaturesPlugin/doc/TUI_extrusionFuseBySizes.rst [new file with mode: 0644]
src/FeaturesPlugin/doc/TUI_removeSubShapesFeature.rst [new file with mode: 0644]
src/FeaturesPlugin/doc/TUI_revolutionByAngles.rst [new file with mode: 0644]
src/FeaturesPlugin/doc/TUI_revolutionByBoundingPlanes.rst [new file with mode: 0644]
src/FeaturesPlugin/doc/TUI_revolutionCutByAngles.rst [new file with mode: 0644]
src/FeaturesPlugin/doc/TUI_revolutionCutByBoundingPlanes.rst [new file with mode: 0644]
src/FeaturesPlugin/doc/TUI_revolutionFuseByAngles.rst [new file with mode: 0644]
src/FeaturesPlugin/doc/TUI_revolutionFuseByBoundingPlanes.rst [new file with mode: 0644]
src/FeaturesPlugin/doc/examples/extrusion_by_bounding_planes.py [new file with mode: 0644]
src/FeaturesPlugin/doc/examples/extrusion_by_sizes.py
src/FeaturesPlugin/doc/examples/extrusion_cut_by_bounding_planes.py [new file with mode: 0644]
src/FeaturesPlugin/doc/examples/extrusion_cut_by_sizes.py [new file with mode: 0644]
src/FeaturesPlugin/doc/examples/extrusion_fuse_by_bounding_planes.py [new file with mode: 0644]
src/FeaturesPlugin/doc/examples/extrusion_fuse_by_sizes.py [new file with mode: 0644]
src/FeaturesPlugin/doc/examples/remove_subshapes.py [new file with mode: 0644]
src/FeaturesPlugin/doc/examples/revolution_by_angles.py [new file with mode: 0644]
src/FeaturesPlugin/doc/examples/revolution_by_bounding_planes.py [new file with mode: 0644]
src/FeaturesPlugin/doc/examples/revolution_cut_by_angles.py [new file with mode: 0644]
src/FeaturesPlugin/doc/examples/revolution_cut_by_bounding_planes.py [new file with mode: 0644]
src/FeaturesPlugin/doc/examples/revolution_fuse_by_angles.py [new file with mode: 0644]
src/FeaturesPlugin/doc/examples/revolution_fuse_by_bounding_planes.py [new file with mode: 0644]
src/FeaturesPlugin/doc/extrusionCutFeature.rst
src/FeaturesPlugin/doc/extrusionFeature.rst
src/FeaturesPlugin/doc/extrusionFuseFeature.rst
src/FeaturesPlugin/doc/fillFeature.rst
src/FeaturesPlugin/doc/images/CreatedFill.png
src/FeaturesPlugin/doc/images/CreatedUnion.png
src/FeaturesPlugin/doc/images/Fill.png
src/FeaturesPlugin/doc/images/StartSketch.png
src/FeaturesPlugin/doc/images/Union.png
src/FeaturesPlugin/doc/images/extrusion_by_bounding_planes_result.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/extrusion_by_sizes_result.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/extrusion_cut_btn.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/extrusion_cut_by_bounding_planes_result.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/extrusion_cut_by_sizes_result.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/extrusion_fuse_btn.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/extrusion_fuse_by_bounding_planes_result.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/extrusion_fuse_by_sizes_result.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/extrusion_result.png [deleted file]
src/FeaturesPlugin/doc/images/keep_subshapes_32x32.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/remove_subshapes_32x32.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/remove_subshapes_btn.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/remove_subshapes_result.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/revolution_btn.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/revolution_by_angles.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/revolution_by_angles_result.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/revolution_by_bounding_planes.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/revolution_by_bounding_planes_result.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/revolution_cut_btn.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/revolution_cut_by_angles_result.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/revolution_cut_by_bounding_planes_result.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/revolution_fuse_btn.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/revolution_fuse_by_angles_result.png [new file with mode: 0644]
src/FeaturesPlugin/doc/images/revolution_fuse_by_bounding_planes_result.png [new file with mode: 0644]
src/FeaturesPlugin/doc/removeSubShapesFeature.rst
src/FeaturesPlugin/doc/revolutionCutFeature.rst
src/FeaturesPlugin/doc/revolutionFeature.rst
src/FeaturesPlugin/doc/revolutionFuseFeature.rst
src/FeaturesPlugin/doc/unionFeature.rst

diff --git a/src/FeaturesPlugin/doc/TUI_extrusionByBoundingPlanes.rst b/src/FeaturesPlugin/doc/TUI_extrusionByBoundingPlanes.rst
new file mode 100644 (file)
index 0000000..d34c3c8
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_extrusion_by_bounding_planes:
+
+Create Extrusion by bounding planes
+===================================
+
+.. literalinclude:: examples/extrusion_by_bounding_planes.py 
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/extrusion_by_bounding_planes.py>`
+   
diff --git a/src/FeaturesPlugin/doc/TUI_extrusionBySizes.rst b/src/FeaturesPlugin/doc/TUI_extrusionBySizes.rst
new file mode 100644 (file)
index 0000000..a6cfeaf
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_extrusion_by_sizes:
+
+Create Extrusion by sizes
+=========================
+
+.. literalinclude:: examples/extrusion_by_sizes.py 
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/extrusion_by_sizes.py>`
+   
diff --git a/src/FeaturesPlugin/doc/TUI_extrusionCutByBoundingPlanes.rst b/src/FeaturesPlugin/doc/TUI_extrusionCutByBoundingPlanes.rst
new file mode 100644 (file)
index 0000000..4927e40
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_extrusion_cut_by_bounding_planes:
+
+Create Extrusion Cut by bounding planes
+=======================================
+
+.. literalinclude:: examples/extrusion_cut_by_bounding_planes.py 
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/extrusion_cut_by_bounding_planes.py>`
+   
diff --git a/src/FeaturesPlugin/doc/TUI_extrusionCutBySizes.rst b/src/FeaturesPlugin/doc/TUI_extrusionCutBySizes.rst
new file mode 100644 (file)
index 0000000..8f2cafa
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_extrusion_cut_by_sizes:
+
+Create Extrusion Cut by sizes
+=============================
+
+.. literalinclude:: examples/extrusion_cut_by_sizes.py 
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/extrusion_cut_by_sizes.py>`
+   
diff --git a/src/FeaturesPlugin/doc/TUI_extrusionFeature.rst b/src/FeaturesPlugin/doc/TUI_extrusionFeature.rst
deleted file mode 100644 (file)
index 633cf73..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-
-  .. tui_create_extrusion:
-
-Create Extrusion by sizes
-=========================
-
-.. literalinclude:: examples/extrusion.py 
-    :linenos:
-    :language: python
-
-:download:`Download this script <examples/extrusion.py>`
-   
diff --git a/src/FeaturesPlugin/doc/TUI_extrusionFuseByBoundingPlanes.rst b/src/FeaturesPlugin/doc/TUI_extrusionFuseByBoundingPlanes.rst
new file mode 100644 (file)
index 0000000..17a255f
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_extrusion_fuse_by_bounding_planes:
+
+Create Extrusion Fuse by bounding planes
+========================================
+
+.. literalinclude:: examples/extrusion_fuse_by_bounding_planes.py 
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/extrusion_fuse_by_bounding_planes.py>`
+   
diff --git a/src/FeaturesPlugin/doc/TUI_extrusionFuseBySizes.rst b/src/FeaturesPlugin/doc/TUI_extrusionFuseBySizes.rst
new file mode 100644 (file)
index 0000000..84bdf57
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_extrusion_fuse_by_sizes:
+
+Create Extrusion Fuse by sizes
+==============================
+
+.. literalinclude:: examples/extrusion_fuse_by_sizes.py 
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/extrusion_fuse_by_sizes.py>`
+   
diff --git a/src/FeaturesPlugin/doc/TUI_removeSubShapesFeature.rst b/src/FeaturesPlugin/doc/TUI_removeSubShapesFeature.rst
new file mode 100644 (file)
index 0000000..49e95a6
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_remove_subshapes:
+
+Remove Sub-Shapes
+=================
+
+.. literalinclude:: examples/remove_subshapes.py
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/remove_subshapes.py>` 
+   
diff --git a/src/FeaturesPlugin/doc/TUI_revolutionByAngles.rst b/src/FeaturesPlugin/doc/TUI_revolutionByAngles.rst
new file mode 100644 (file)
index 0000000..2ada166
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_revolution_by_angles:
+
+Create Revolution by angles
+===========================
+
+.. literalinclude:: examples/revolution_by_angles.py 
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/revolution_by_angles.py>`
+   
diff --git a/src/FeaturesPlugin/doc/TUI_revolutionByBoundingPlanes.rst b/src/FeaturesPlugin/doc/TUI_revolutionByBoundingPlanes.rst
new file mode 100644 (file)
index 0000000..e72ab58
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_revolution_by_bounding_planes:
+
+Create Revolution by bounding planes
+====================================
+
+.. literalinclude:: examples/revolution_by_bounding_planes.py 
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/revolution_by_bounding_planes.py>`
+   
diff --git a/src/FeaturesPlugin/doc/TUI_revolutionCutByAngles.rst b/src/FeaturesPlugin/doc/TUI_revolutionCutByAngles.rst
new file mode 100644 (file)
index 0000000..a9a57c4
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_revolution_cut_by_angles:
+
+Create Revolution Cut by angles
+===============================
+
+.. literalinclude:: examples/revolution_cut_by_angles.py 
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/revolution_cut_by_angles.py>`
+   
diff --git a/src/FeaturesPlugin/doc/TUI_revolutionCutByBoundingPlanes.rst b/src/FeaturesPlugin/doc/TUI_revolutionCutByBoundingPlanes.rst
new file mode 100644 (file)
index 0000000..0cad569
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_revolution_cut_by_bounding_planes:
+
+Create Revolution Cut by bounding planes
+========================================
+
+.. literalinclude:: examples/revolution_cut_by_bounding_planes.py 
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/revolution_cut_by_bounding_planes.py>`
+   
diff --git a/src/FeaturesPlugin/doc/TUI_revolutionFuseByAngles.rst b/src/FeaturesPlugin/doc/TUI_revolutionFuseByAngles.rst
new file mode 100644 (file)
index 0000000..aba5f2a
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_revolution_fuse_by_angles:
+
+Create Revolution Fuse by angles
+================================
+
+.. literalinclude:: examples/revolution_fuse_by_angles.py 
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/revolution_fuse_by_angles.py>`
+   
diff --git a/src/FeaturesPlugin/doc/TUI_revolutionFuseByBoundingPlanes.rst b/src/FeaturesPlugin/doc/TUI_revolutionFuseByBoundingPlanes.rst
new file mode 100644 (file)
index 0000000..f70c940
--- /dev/null
@@ -0,0 +1,12 @@
+
+  .. _tui_create_revolution_fuse_by_bounding_planes:
+
+Create Revolution Fuse by bounding planes
+=========================================
+
+.. literalinclude:: examples/revolution_fuse_by_bounding_planes.py 
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/revolution_fuse_by_bounding_planes.py>`
+   
diff --git a/src/FeaturesPlugin/doc/examples/extrusion_by_bounding_planes.py b/src/FeaturesPlugin/doc/examples/extrusion_by_bounding_planes.py
new file mode 100644 (file)
index 0000000..a570b01
--- /dev/null
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+
+from salome.shaper import model
+
+model.begin()
+partSet = model.moduleDocument()
+Part_1 = model.addPart(partSet)
+Part_1_doc = Part_1.document()
+Sketch_1 = model.addSketch(Part_1_doc, model.standardPlane("XOY"))
+SketchCircle_1 = Sketch_1.addCircle(0, 0, 50)
+model.do()
+Plane_4 = model.addPlane(Part_1_doc,
+                         model.selection("FACE", "PartSet/XOY"),
+                         model.selection("EDGE", "PartSet/OX"),
+                         45)
+Plane_5 = model.addPlane(Part_1_doc,
+                        model.selection("FACE", "PartSet/XOY"),
+                        model.selection("EDGE", "PartSet/OX"),
+                        315)
+Extrusion_1 = model.addExtrusion(Part_1_doc,
+                                 [model.selection("COMPOUND", "Sketch_1")],
+                                 model.selection(),
+                                 model.selection("FACE", "Plane_2"),
+                                 50,
+                                 model.selection("FACE", "Plane_1"),
+                                 50)
+model.do()
+model.end()
index 56f329f7ac316a46536f5acf86c75f4f2ec04989..b169094fcb4dc3cb4140abaaa109364e8f435951 100644 (file)
@@ -7,11 +7,12 @@ partSet = model.moduleDocument()
 Part_1 = model.addPart(partSet)
 Part_1_doc = Part_1.document()
 Sketch_1 = model.addSketch(Part_1_doc, model.standardPlane("XOY"))
-SketchProjection_1 = Sketch_1.addProjection(model.selection("VERTEX", "PartSet/Origin"), False)
-SketchPoint_1 = SketchProjection_1.createdFeature()
-SketchCircle_1 = Sketch_1.addCircle(0, 0, 27.26724996788554)
-SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchPoint_1.result(), SketchCircle_1.center())
+SketchCircle_1 = Sketch_1.addCircle(0, 0, 25)
 model.do()
-Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchCircle_1_2f")], model.selection(), 50, 0)
+Extrusion_1 = model.addExtrusion(Part_1_doc,
+                                 [model.selection("COMPOUND", "Sketch_1")],
+                                 model.selection(),
+                                 50,
+                                 0)
 model.do()
 model.end()
diff --git a/src/FeaturesPlugin/doc/examples/extrusion_cut_by_bounding_planes.py b/src/FeaturesPlugin/doc/examples/extrusion_cut_by_bounding_planes.py
new file mode 100644 (file)
index 0000000..1f27f5f
--- /dev/null
@@ -0,0 +1,22 @@
+# -*- 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)
+ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc,
+                                       [],
+                                       model.selection(),
+                                       model.selection("FACE", "Box_1_1/Bottom"),
+                                       0,
+                                       model.selection("FACE", "Box_1_1/Top"),
+                                       0,
+                                       [model.selection("SOLID", "Box_1_1")])
+Sketch_1 = model.addSketch(Part_1_doc, model.selection("FACE", "Box_1_1/Top"))
+SketchCircle_1 = Sketch_1.addCircle(5, 0, 2)
+ExtrusionCut_1.setNestedSketch(Sketch_1)
+model.do()
+model.end()
diff --git a/src/FeaturesPlugin/doc/examples/extrusion_cut_by_sizes.py b/src/FeaturesPlugin/doc/examples/extrusion_cut_by_sizes.py
new file mode 100644 (file)
index 0000000..237ea85
--- /dev/null
@@ -0,0 +1,21 @@
+# -*- 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)
+ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc,
+                                       [],
+                                       model.selection(),
+                                       0,
+                                       5,
+                                       [model.selection("SOLID", "Box_1_1")])
+Sketch_1 = model.addSketch(Part_1_doc,
+                           model.selection("FACE", "Box_1_1/Top"))
+SketchCircle_1 = Sketch_1.addCircle(5, 0, 2)
+ExtrusionCut_1.setNestedSketch(Sketch_1)
+model.do()
+model.end()
diff --git a/src/FeaturesPlugin/doc/examples/extrusion_fuse_by_bounding_planes.py b/src/FeaturesPlugin/doc/examples/extrusion_fuse_by_bounding_planes.py
new file mode 100644 (file)
index 0000000..6e9dbea
--- /dev/null
@@ -0,0 +1,22 @@
+# -*- 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)
+ExtrusionFuse_1 = model.addExtrusionFuse(Part_1_doc,
+                                         [],
+                                         model.selection(),
+                                         model.selection("FACE", "Box_1_1/Bottom"),
+                                         0,
+                                         model.selection("FACE", "Box_1_1/Top"),
+                                         0,
+                                         [model.selection("SOLID", "Box_1_1")])
+Sketch_1 = model.addSketch(Part_1_doc, model.selection("FACE", "Box_1_1/Top"))
+SketchCircle_1 = Sketch_1.addCircle(5, 0, 2)
+ExtrusionFuse_1.setNestedSketch(Sketch_1)
+model.do()
+model.end()
diff --git a/src/FeaturesPlugin/doc/examples/extrusion_fuse_by_sizes.py b/src/FeaturesPlugin/doc/examples/extrusion_fuse_by_sizes.py
new file mode 100644 (file)
index 0000000..c16590f
--- /dev/null
@@ -0,0 +1,21 @@
+# -*- 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)
+ExtrusionFuse_1 = model.addExtrusionFuse(Part_1_doc,
+                                         [],
+                                         model.selection(),
+                                         0,
+                                         5,
+                                         [model.selection("SOLID", "Box_1_1")])
+Sketch_1 = model.addSketch(Part_1_doc,
+                           model.selection("FACE", "Box_1_1/Top"))
+SketchCircle_1 = Sketch_1.addCircle(5, 0, 2)
+ExtrusionFuse_1.setNestedSketch(Sketch_1)
+model.do()
+model.end()
diff --git a/src/FeaturesPlugin/doc/examples/remove_subshapes.py b/src/FeaturesPlugin/doc/examples/remove_subshapes.py
new file mode 100644 (file)
index 0000000..161ecca
--- /dev/null
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+
+from salome.shaper import model
+
+model.begin()
+partSet = model.moduleDocument()
+Part_1 = model.addPart(partSet)
+Part_1_doc = Part_1.document()
+Sketch_1 = model.addSketch(Part_1_doc, model.standardPlane("XOY"))
+SketchCircle_1 = Sketch_1.addCircle(0, -25, 50)
+SketchCircle_2 = Sketch_1.addCircle(0, 25, 50)
+model.do()
+Extrusion_1 = model.addExtrusion(Part_1_doc,
+                                [model.selection("COMPOUND", "Sketch_1")],
+                                model.selection(),
+                                10,
+                                0)
+Remove_SubShapes_1 = model.addRemoveSubShapes(Part_1_doc,
+                                              model.selection("COMPSOLID", "Extrusion_1_1"))
+Remove_SubShapes_1.setSubShapesToRemove([model.selection("SOLID", "Extrusion_1_1_2")])
+model.do()
+model.end()
diff --git a/src/FeaturesPlugin/doc/examples/revolution_by_angles.py b/src/FeaturesPlugin/doc/examples/revolution_by_angles.py
new file mode 100644 (file)
index 0000000..81748ce
--- /dev/null
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+
+from salome.shaper import model
+
+model.begin()
+partSet = model.moduleDocument()
+Part_1 = model.addPart(partSet)
+Part_1_doc = Part_1.document()
+Sketch_1 = model.addSketch(Part_1_doc, model.standardPlane("XOY"))
+SketchCircle_1 = Sketch_1.addCircle(20, 20, 10)
+model.do()
+Revolution_1 = model.addRevolution(Part_1_doc,
+                                   [model.selection("COMPOUND", "Sketch_1")],
+                                   model.selection("EDGE", "PartSet/OY"),
+                                   360,
+                                   0)
+model.do()
+model.end()
diff --git a/src/FeaturesPlugin/doc/examples/revolution_by_bounding_planes.py b/src/FeaturesPlugin/doc/examples/revolution_by_bounding_planes.py
new file mode 100644 (file)
index 0000000..0830605
--- /dev/null
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+
+from salome.shaper import model
+
+model.begin()
+partSet = model.moduleDocument()
+Part_1 = model.addPart(partSet)
+Part_1_doc = Part_1.document()
+Sketch_1 = model.addSketch(Part_1_doc, model.standardPlane("XOY"))
+SketchCircle_1 = Sketch_1.addCircle(20, 20, 10)
+model.do()
+Revolution_1 = model.addRevolution(Part_1_doc,
+                                   [model.selection("COMPOUND", "Sketch_1")],
+                                   model.selection("EDGE", "PartSet/OY"),
+                                   model.selection("FACE", "PartSet/XOY"),
+                                   0,
+                                   model.selection("FACE", "PartSet/YOZ"),
+                                   0)
+model.do()
+model.end()
diff --git a/src/FeaturesPlugin/doc/examples/revolution_cut_by_angles.py b/src/FeaturesPlugin/doc/examples/revolution_cut_by_angles.py
new file mode 100644 (file)
index 0000000..295a949
--- /dev/null
@@ -0,0 +1,20 @@
+# -*- 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)
+Sketch_1 = model.addSketch(Part_1_doc, model.selection("FACE", "Box_1_1/Top"))
+SketchCircle_1 = Sketch_1.addCircle(5, 5, 2.5)
+model.do()
+RevolutionCut_1 = model.addRevolutionCut(Part_1_doc,
+                                         [model.selection("COMPOUND", "Sketch_1")],
+                                         model.selection("EDGE", "Box_1_1/Front&Box_1_1/Top"),
+                                         0,
+                                         90,
+                                         [model.selection("SOLID", "Box_1_1")])
+model.do()
+model.end()
diff --git a/src/FeaturesPlugin/doc/examples/revolution_cut_by_bounding_planes.py b/src/FeaturesPlugin/doc/examples/revolution_cut_by_bounding_planes.py
new file mode 100644 (file)
index 0000000..fba7ef0
--- /dev/null
@@ -0,0 +1,22 @@
+# -*- 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)
+Sketch_1 = model.addSketch(Part_1_doc, model.selection("FACE", "Box_1_1/Top"))
+SketchCircle_1 = Sketch_1.addCircle(5, 5, 2.5)
+model.do()
+RevolutionCut_1 = model.addRevolutionCut(Part_1_doc,
+                                         [model.selection("COMPOUND", "Sketch_1")],
+                                         model.selection("EDGE", "Box_1_1/Front&Box_1_1/Top"),
+                                         model.selection(),
+                                         0,
+                                         model.selection("FACE", "Box_1_1/Front"),
+                                         0,
+                                         [model.selection("SOLID", "Box_1_1")])
+model.do()
+model.end()
diff --git a/src/FeaturesPlugin/doc/examples/revolution_fuse_by_angles.py b/src/FeaturesPlugin/doc/examples/revolution_fuse_by_angles.py
new file mode 100644 (file)
index 0000000..145a9a0
--- /dev/null
@@ -0,0 +1,20 @@
+# -*- 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)
+Sketch_1 = model.addSketch(Part_1_doc, model.selection("FACE", "Box_1_1/Top"))
+SketchCircle_1 = Sketch_1.addCircle(5, 5, 2.5)
+model.do()
+RevolutionCut_1 = model.addRevolutionFuse(Part_1_doc,
+                                          [model.selection("COMPOUND", "Sketch_1")],
+                                          model.selection("EDGE", "Box_1_1/Front&Box_1_1/Top"),
+                                          90,
+                                          0,
+                                          [model.selection("SOLID", "Box_1_1")])
+model.do()
+model.end()
diff --git a/src/FeaturesPlugin/doc/examples/revolution_fuse_by_bounding_planes.py b/src/FeaturesPlugin/doc/examples/revolution_fuse_by_bounding_planes.py
new file mode 100644 (file)
index 0000000..3e2c2e0
--- /dev/null
@@ -0,0 +1,22 @@
+# -*- 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)
+Sketch_1 = model.addSketch(Part_1_doc, model.selection("FACE", "Box_1_1/Top"))
+SketchCircle_1 = Sketch_1.addCircle(5, 5, 2.5)
+model.do()
+RevolutionCut_1 = model.addRevolutionFuse(Part_1_doc,
+                                          [model.selection("COMPOUND", "Sketch_1")],
+                                          model.selection("EDGE", "Box_1_1/Front&Box_1_1/Top"),
+                                          model.selection("FACE", "Box_1_1/Front"),
+                                          0,
+                                          model.selection(),
+                                          0,
+                                          [model.selection("SOLID", "Box_1_1")])
+model.do()
+model.end()
index dfa156f036ac79df46ba472b673579e7f76980f8..f37762fc5cd081b712635741f141bebb9d9b4db3 100644 (file)
@@ -1,7 +1,21 @@
 
-Extrusion cut
+Extrusion Cut
 =============
 
+Extrusion Cut feature extrudes selected objects along their normals or selected axis and cuts result from other objects.
+
+To perform Extrusion Cut in the active part:
+
+#. select in the Main Menu *Features - > Extrusion Cut* item  or
+#. click **Extrusion Cut** button in the toolbar
+
+.. image:: images/extrusion_cut_btn.png
+   :align: center
+
+.. centered::
+   **Extrusion Cut** button
+
+The following property panel will be opened:
 
 .. image:: images/StartSketch.png
   :align: center
@@ -9,16 +23,95 @@ Extrusion cut
 .. centered::
   Start sketch
 
+After selecting one of the options property panel for Extrusion Cut will be opened with two variants:
+
+.. image:: images/extrusion_by_sizes.png
+   :align: left
+**By Sizes** extrudes objects by specifying sizes.
+
+.. image:: images/extrusion_by_bounding_planes.png
+   :align: left
+**By Bounding Planes** extrudes objects by specifying bounding planes and offsets.
+
+
+By sizes
+--------
 
 .. image:: images/ExtrusionCut1.png
   :align: center
 
 .. centered::
-  Extrusion: definition by sizes
+  Extrusion Cut: definition by sizes
+
+- **Base objects** contains a list of objects selected in the Object Browser or in the Viewer, which will be extruded.
+- **Axis** if selected then it will be direction of extrusion, otherwise objects normals will be used.
+- **To size** size for extrusion along direction.
+- **From size** size for extrusion in opposite direction.
+- **Cut from** contains a list of objects which will but cut with the result of extrusion.
+
+**TUI Command**:  *model.addExtrusionCut(part, objectsToExtrude, size, objectsToCut);*
+
+**Arguments**:   Part + list of objects for extrusion + size + list of objects to cut from.
+
+**TUI Command**:  *model.addExtrusionCut(part, objects, direction, size, objectsToCut);*
+
+**Arguments**:   Part + list of objects for extrusion + direction + size + list of objects to cut from.
+
+**TUI Command**:  *model.addExtrusionCut(part, objects, toSize, fromSize, objectsToCut);*
+
+**Arguments**:   Part + list of objects for extrusion + to size + from size + list of objects to cut from.
+
+**TUI Command**:  *model.addExtrusionCut(part, objects, direction, toSize, fromSize, objectsToCut);*
+
+**Arguments**:   Part + list of objects for extrusion + direction + to size + from size + list of objects to cut from.
+
+Result
+""""""
+
+The Result of the operation will be an extruded shape:
+
+.. image:: images/extrusion_cut_by_sizes_result.png
+          :align: center
+
+.. centered::
+   **Extrusion Cut created**
+
+**See Also** a sample TUI Script of a :ref:`tui_create_extrusion_cut_by_sizes` operation.
 
+By bounding planes
+------------------
 
 .. image:: images/ExtrusionCut2.png
   :align: center
 
 .. centered::
-  Extrusion: definition by bounding planes
+  Extrusion Cut: definition by bounding planes
+
+- **Base objects** contains a list of objects selected in the Object Browser or in the Viewer, which will be extruded.
+- **Axis** if selected then it will be direction of extrusion, otherwise objects normals will be used.
+- **To plane** planar face can be selected to bound extrusion from one side.
+- **To offset** offset for extrusion or for bounding plane if selected.
+- **From plane** planar face can be selected to bound extrusion from other side.
+- **From offset** offset for extrusion or for bounding plane if selected.
+- **Cut from** contains a list of objects which will but cut with the result of extrusion.
+
+**TUI Command**:  *model.addExtrusionCut(part, objects, toObject, toOffset, fromObject, fromOffset, objectsToCut);*
+
+**Arguments**:   Part + list of objects for extrusion + to object + to offset + from object + from offset + list of objects to cut from.
+
+**TUI Command**:  *model.addExtrusionCut(part, objects, direction, toObject, toOffset, fromObject, fromOffset, objectsToCut);*
+
+**Arguments**:   Part + list of objects for extrusion + direction + to object + to offset + from object + from offset + list of objects to cut from.
+
+Result
+""""""
+
+The Result of the operation will be an extruded shape:
+
+.. image:: images/extrusion_cut_by_bounding_planes_result.png
+          :align: center
+
+.. centered::
+   **Extrusion Cut created**
+
+**See Also** a sample TUI Script of a :ref:`tui_create_extrusion_cut_by_bounding_planes` operation.
index d1b85f14c1403177664b6b3670cee436ced36fbc..831509d680ebf71e2e4f4732b3988de9a55c324b 100644 (file)
@@ -1,4 +1,3 @@
-.. _featureExtrusion:
 
 Extrusion
 =========
@@ -35,8 +34,8 @@ After selecting one of the options property panel for Extrusion will be opened w
 **By Bounding Planes** extrudes objects by specifying bounding planes and offsets.
 
 
-Simple
-------
+By sizes
+--------
 
 .. image:: images/Extrusion1.png
   :align: center
@@ -70,19 +69,47 @@ Result
 
 The Result of the operation will be an extruded shape:
 
-.. image:: images/extrusion_result.png
+.. image:: images/extrusion_by_sizes_result.png
           :align: center
 
 .. centered::
    **Extrusion created**
 
-**See Also** a sample TUI Script of a :ref:`tui_create_extrusion` operation.
-
-
+**See Also** a sample TUI Script of a :ref:`tui_create_extrusion_by_sizes` operation.
 
+By bounding planes
+------------------
 
 .. image:: images/Extrusion2.png
   :align: center
 
 .. centered::
   Extrusion: definition by bounding planes
+
+- **Base objects** contains a list of objects selected in the Object Browser or in the Viewer, which will be extruded.
+- **Axis** if selected then it will be direction of extrusion, otherwise objects normals will be used.
+- **To plane** planar face can be selected to bound extrusion from one side.
+- **To offset** offset for extrusion or for bounding plane if selected.
+- **From plane** planar face can be selected to bound extrusion from other side.
+- **From offset** offset for extrusion or for bounding plane if selected.
+
+**TUI Command**:  *model.addExtrusion(part, objects, toObject, toOffset, fromObject, fromOffset);*
+
+**Arguments**:   Part + list of objects + to object + to offset + from object + from offset.
+
+**TUI Command**:  *model.addExtrusion(part, objects, direction, toObject, toOffset, fromObject, fromOffset);*
+
+**Arguments**:   Part + list of objects + direction + to object + to offset + from object + from offset.
+
+Result
+""""""
+
+The Result of the operation will be an extruded shape:
+
+.. image:: images/extrusion_by_bounding_planes_result.png
+          :align: center
+
+.. centered::
+   **Extrusion created**
+
+**See Also** a sample TUI Script of a :ref:`tui_create_extrusion_by_bounding_planes` operation.
index ab214ebf21d0b24f26b3cf022948987454cd6228..b67d1faa62519d167aa13c2270c774a05fcc3cd5 100644 (file)
@@ -1,7 +1,21 @@
 
-Extrusion fuse
-==============
+Extrusion Fuse
+=============
 
+Extrusion Fuse feature extrudes selected objects along their normals or selected axis and fuses result with other objects.
+
+To perform Extrusion Fuse in the active part:
+
+#. select in the Main Menu *Features - > Extrusion Fuse* item  or
+#. click **Extrusion Fuse** button in the toolbar
+
+.. image:: images/extrusion_fuse_btn.png
+   :align: center
+
+.. centered::
+   **Extrusion Fuse** button
+
+The following property panel will be opened:
 
 .. image:: images/StartSketch.png
   :align: center
@@ -9,16 +23,95 @@ Extrusion fuse
 .. centered::
   Start sketch
 
+After selecting one of the options property panel for Extrusion Fuse will be opened with two variants:
+
+.. image:: images/extrusion_by_sizes.png
+   :align: left
+**By Sizes** extrudes objects by specifying sizes.
+
+.. image:: images/extrusion_by_bounding_planes.png
+   :align: left
+**By Bounding Planes** extrudes objects by specifying bounding planes and offsets.
+
+
+By sizes
+--------
 
 .. image:: images/ExtrusionFuse1.png
   :align: center
 
 .. centered::
-  Extrusion: definition by sizes
+  Extrusion Fuse: definition by sizes
+
+- **Base objects** contains a list of objects selected in the Object Browser or in the Viewer, which will be extruded.
+- **Axis** if selected then it will be direction of extrusion, otherwise objects normals will be used.
+- **To size** size for extrusion along direction.
+- **From size** size for extrusion in opposite direction.
+- **Fuse with** contains a list of objects which will but fused with the result of extrusion.
+
+**TUI Command**:  *model.addExtrusionFuse(part, objectsToExtrude, size, objectsToFuse);*
+
+**Arguments**:   Part + list of objects for extrusion + size + list of objects to fuse with.
+
+**TUI Command**:  *model.addExtrusionFuse(part, objects, direction, size, objectsToFuse);*
+
+**Arguments**:   Part + list of objects for extrusion + direction + size + list of objects to fuse with.
+
+**TUI Command**:  *model.addExtrusionFuse(part, objects, toSize, fromSize, objectsToFuse);*
+
+**Arguments**:   Part + list of objects for extrusion + to size + from size + list of objects to fuse with.
+
+**TUI Command**:  *model.addExtrusionFuse(part, objects, direction, toSize, fromSize, objectsToFuse);*
+
+**Arguments**:   Part + list of objects for extrusion + direction + to size + from size + list of objects to fuse with.
+
+Result
+""""""
+
+The Result of the operation will be an extruded shape:
+
+.. image:: images/extrusion_fuse_by_sizes_result.png
+          :align: center
+
+.. centered::
+   **Extrusion Fuse created**
+
+**See Also** a sample TUI Script of a :ref:`tui_create_extrusion_fuse_by_sizes` operation.
 
+By bounding planes
+------------------
 
 .. image:: images/ExtrusionFuse2.png
   :align: center
 
 .. centered::
-  Extrusion: definition by bounding planes
+  Extrusion Fuse: definition by bounding planes
+
+- **Base objects** contains a list of objects selected in the Object Browser or in the Viewer, which will be extruded.
+- **Axis** if selected then it will be direction of extrusion, otherwise objects normals will be used.
+- **To plane** planar face can be selected to bound extrusion from one side.
+- **To offset** offset for extrusion or for bounding plane if selected.
+- **From plane** planar face can be selected to bound extrusion from other side.
+- **From offset** offset for extrusion or for bounding plane if selected.
+- **Fuse with** contains a list of objects which will but fused with the result of extrusion.
+
+**TUI Command**:  *model.addExtrusionFuse(part, objects, toObject, toOffset, fromObject, fromOffset, objectsToFuse);*
+
+**Arguments**:   Part + list of objects for extrusion + to object + to offset + from object + from offset + list of objects to fuse with.
+
+**TUI Command**:  *model.addExtrusionFuse(part, objects, direction, toObject, toOffset, fromObject, fromOffset, objectsToFuse);*
+
+**Arguments**:   Part + list of objects for extrusion + direction + to object + to offset + from object + from offset + list of objects to fuse with.
+
+Result
+""""""
+
+The Result of the operation will be an extruded shape:
+
+.. image:: images/extrusion_fuse_by_bounding_planes_result.png
+          :align: center
+
+.. centered::
+   **Extrusion Fuse created**
+
+**See Also** a sample TUI Script of a :ref:`tui_create_extrusion_fuse_by_bounding_planes` operation.
index 40d16ad6d4b54b9cecc8b535f23b22e501e836bd..81504a80a3fc835ca754416cd395ff407f831f88 100644 (file)
@@ -4,7 +4,7 @@ Fill
 
 The feature Fill implements a boolean operation for filling of main objects by parts of tool objects.
 
-To perform a boolean opration Fill in the active part:
+To perform a boolean operation Fill in the active part:
 
 #. select in the Main Menu *Features - > Fill* item  or
 #. click **Fill** button in the toolbar
index 68b7ac2de982948e658b87ed763dfa451a30df1e..7d8b28faac9d410ef481b594def603689d8b4424 100644 (file)
Binary files a/src/FeaturesPlugin/doc/images/CreatedFill.png and b/src/FeaturesPlugin/doc/images/CreatedFill.png differ
index 2df9dba2454b6eeb8d9e62ca1adb94946c7854ca..500465ec5a4fca555c191aefa0f813fad5ff94e7 100644 (file)
Binary files a/src/FeaturesPlugin/doc/images/CreatedUnion.png and b/src/FeaturesPlugin/doc/images/CreatedUnion.png differ
index c5e11d29e6935bf03132805259c532080cf1b1a2..e5c4cd41e81eea6cbbdefd7c587160a5b7ba088c 100644 (file)
Binary files a/src/FeaturesPlugin/doc/images/Fill.png and b/src/FeaturesPlugin/doc/images/Fill.png differ
index 20245cf91833504939f3019c4b6f8683c9a5aa14..ec4ed7ed92397b715fde66b6eb7c0f00f05fb77e 100644 (file)
Binary files a/src/FeaturesPlugin/doc/images/StartSketch.png and b/src/FeaturesPlugin/doc/images/StartSketch.png differ
index 50b90188b40aa68223d63d837b3f05de60bafc00..04072bb3bbdc37af6130b18ea5150e3213fc83ee 100644 (file)
Binary files a/src/FeaturesPlugin/doc/images/Union.png and b/src/FeaturesPlugin/doc/images/Union.png differ
diff --git a/src/FeaturesPlugin/doc/images/extrusion_by_bounding_planes_result.png b/src/FeaturesPlugin/doc/images/extrusion_by_bounding_planes_result.png
new file mode 100644 (file)
index 0000000..c0471ea
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/extrusion_by_bounding_planes_result.png differ
diff --git a/src/FeaturesPlugin/doc/images/extrusion_by_sizes_result.png b/src/FeaturesPlugin/doc/images/extrusion_by_sizes_result.png
new file mode 100644 (file)
index 0000000..4773d0c
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/extrusion_by_sizes_result.png differ
diff --git a/src/FeaturesPlugin/doc/images/extrusion_cut_btn.png b/src/FeaturesPlugin/doc/images/extrusion_cut_btn.png
new file mode 100644 (file)
index 0000000..77ba5b3
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/extrusion_cut_btn.png differ
diff --git a/src/FeaturesPlugin/doc/images/extrusion_cut_by_bounding_planes_result.png b/src/FeaturesPlugin/doc/images/extrusion_cut_by_bounding_planes_result.png
new file mode 100644 (file)
index 0000000..99c1b8d
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/extrusion_cut_by_bounding_planes_result.png differ
diff --git a/src/FeaturesPlugin/doc/images/extrusion_cut_by_sizes_result.png b/src/FeaturesPlugin/doc/images/extrusion_cut_by_sizes_result.png
new file mode 100644 (file)
index 0000000..3b9bb74
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/extrusion_cut_by_sizes_result.png differ
diff --git a/src/FeaturesPlugin/doc/images/extrusion_fuse_btn.png b/src/FeaturesPlugin/doc/images/extrusion_fuse_btn.png
new file mode 100644 (file)
index 0000000..0914eb7
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/extrusion_fuse_btn.png differ
diff --git a/src/FeaturesPlugin/doc/images/extrusion_fuse_by_bounding_planes_result.png b/src/FeaturesPlugin/doc/images/extrusion_fuse_by_bounding_planes_result.png
new file mode 100644 (file)
index 0000000..1a17f10
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/extrusion_fuse_by_bounding_planes_result.png differ
diff --git a/src/FeaturesPlugin/doc/images/extrusion_fuse_by_sizes_result.png b/src/FeaturesPlugin/doc/images/extrusion_fuse_by_sizes_result.png
new file mode 100644 (file)
index 0000000..5de52bb
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/extrusion_fuse_by_sizes_result.png differ
diff --git a/src/FeaturesPlugin/doc/images/extrusion_result.png b/src/FeaturesPlugin/doc/images/extrusion_result.png
deleted file mode 100644 (file)
index 4773d0c..0000000
Binary files a/src/FeaturesPlugin/doc/images/extrusion_result.png and /dev/null differ
diff --git a/src/FeaturesPlugin/doc/images/keep_subshapes_32x32.png b/src/FeaturesPlugin/doc/images/keep_subshapes_32x32.png
new file mode 100644 (file)
index 0000000..45319eb
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/keep_subshapes_32x32.png differ
diff --git a/src/FeaturesPlugin/doc/images/remove_subshapes_32x32.png b/src/FeaturesPlugin/doc/images/remove_subshapes_32x32.png
new file mode 100644 (file)
index 0000000..094f6d4
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/remove_subshapes_32x32.png differ
diff --git a/src/FeaturesPlugin/doc/images/remove_subshapes_btn.png b/src/FeaturesPlugin/doc/images/remove_subshapes_btn.png
new file mode 100644 (file)
index 0000000..98d7a8c
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/remove_subshapes_btn.png differ
diff --git a/src/FeaturesPlugin/doc/images/remove_subshapes_result.png b/src/FeaturesPlugin/doc/images/remove_subshapes_result.png
new file mode 100644 (file)
index 0000000..a38607d
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/remove_subshapes_result.png differ
diff --git a/src/FeaturesPlugin/doc/images/revolution_btn.png b/src/FeaturesPlugin/doc/images/revolution_btn.png
new file mode 100644 (file)
index 0000000..f475b2a
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/revolution_btn.png differ
diff --git a/src/FeaturesPlugin/doc/images/revolution_by_angles.png b/src/FeaturesPlugin/doc/images/revolution_by_angles.png
new file mode 100644 (file)
index 0000000..25cb0e5
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/revolution_by_angles.png differ
diff --git a/src/FeaturesPlugin/doc/images/revolution_by_angles_result.png b/src/FeaturesPlugin/doc/images/revolution_by_angles_result.png
new file mode 100644 (file)
index 0000000..1975a1d
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/revolution_by_angles_result.png differ
diff --git a/src/FeaturesPlugin/doc/images/revolution_by_bounding_planes.png b/src/FeaturesPlugin/doc/images/revolution_by_bounding_planes.png
new file mode 100644 (file)
index 0000000..49f81f8
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/revolution_by_bounding_planes.png differ
diff --git a/src/FeaturesPlugin/doc/images/revolution_by_bounding_planes_result.png b/src/FeaturesPlugin/doc/images/revolution_by_bounding_planes_result.png
new file mode 100644 (file)
index 0000000..090fc74
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/revolution_by_bounding_planes_result.png differ
diff --git a/src/FeaturesPlugin/doc/images/revolution_cut_btn.png b/src/FeaturesPlugin/doc/images/revolution_cut_btn.png
new file mode 100644 (file)
index 0000000..2a5dfe1
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/revolution_cut_btn.png differ
diff --git a/src/FeaturesPlugin/doc/images/revolution_cut_by_angles_result.png b/src/FeaturesPlugin/doc/images/revolution_cut_by_angles_result.png
new file mode 100644 (file)
index 0000000..6905721
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/revolution_cut_by_angles_result.png differ
diff --git a/src/FeaturesPlugin/doc/images/revolution_cut_by_bounding_planes_result.png b/src/FeaturesPlugin/doc/images/revolution_cut_by_bounding_planes_result.png
new file mode 100644 (file)
index 0000000..6905721
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/revolution_cut_by_bounding_planes_result.png differ
diff --git a/src/FeaturesPlugin/doc/images/revolution_fuse_btn.png b/src/FeaturesPlugin/doc/images/revolution_fuse_btn.png
new file mode 100644 (file)
index 0000000..147b045
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/revolution_fuse_btn.png differ
diff --git a/src/FeaturesPlugin/doc/images/revolution_fuse_by_angles_result.png b/src/FeaturesPlugin/doc/images/revolution_fuse_by_angles_result.png
new file mode 100644 (file)
index 0000000..a41d778
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/revolution_fuse_by_angles_result.png differ
diff --git a/src/FeaturesPlugin/doc/images/revolution_fuse_by_bounding_planes_result.png b/src/FeaturesPlugin/doc/images/revolution_fuse_by_bounding_planes_result.png
new file mode 100644 (file)
index 0000000..b7b304d
Binary files /dev/null and b/src/FeaturesPlugin/doc/images/revolution_fuse_by_bounding_planes_result.png differ
index a8f1d440d19aedd3c7c47632cdd870e312ffa9f7..c1fe7f950c80f552cc0b2169c0c88ff8a566a9d0 100644 (file)
@@ -1,10 +1,67 @@
 
-Remove sub-shapes
+Remove Sub-Shapes
 =================
 
+Remove Sub-Shapes allows to remove sub shapes from wires, shells, compsolids, compounds.
+
+To perform Remove Sub-Shapes in the active part:
+
+#. select in the Main Menu *Features - > Remove Sub-Shapes* item  or
+#. click **Remove Sub-Shapes** button in the toolbar
+
+.. image:: images/remove_subshapes_btn.png
+   :align: center
+
+.. centered::
+   **Remove Sub-Shapes** button
+
+The following property panel will be opened:
 
 .. image:: images/RemoveSubShapes.png
   :align: center
 
 .. centered::
-  Remove sub-shapes
+  Remove Sub-Shapes
+
+- **Shape** shape from which sub-shapes should be removed. Only wires, shells, compsolids, compounds allowed for selection.
+
+There are 2 options for removing sub-shapes:
+
+.. image:: images/remove_subshapes_32x32.png
+   :align: left
+**By removing** allows to select which sub-shapes will be removed.
+
+- **Sub-Shapes to remove** list of sub-shapes which should be removed.
+
+**TUI Command**:
+ | *Remove_SubShapes_1 = model.addRemoveSubShapes(Part_1_doc, object)*
+ | *Remove_SubShapes_1.setSubShapesToRemove(subShapes)*
+
+**Arguments**: Part + object; List of sub-shapes to remove.
+
+
+.. image:: images/keep_subshapes_32x32.png
+   :align: left
+**By keeping** allows to select which sub-shapes will be kept.
+
+- **Sub-Shapes to keep** list of sub-shapes which should be kept.
+
+**TUI Command**:
+ | *Remove_SubShapes_1 = model.addRemoveSubShapes(Part_1_doc, object)*
+ | *Remove_SubShapes_1.setSubShapesToKeep(subShapes)*
+
+**Arguments**: Part + object; List of sub-shapes to keep.
+
+
+Result
+""""""
+
+The Result of the operation will be a shape without removed sub-shapes:
+
+.. image:: images/remove_subshapes_result.png
+          :align: center
+
+.. centered::
+   **Remove Sub-Shapes created**
+
+**See Also** a sample TUI Script of a :ref:`tui_create_remove_subshapes` operation.
index ac60837f25835e82d0bb7e6faa154ee462680dff..bc5d5f78bd3fcbb7f1c303ca9a937abf856fd30b 100644 (file)
@@ -1,7 +1,21 @@
 
-Revolution cut
+Revolution Cut
 ==============
 
+Revolution Cut feature revolves selected objects around selected axis and cuts result from other objects.
+
+To perform Revolution Cut in the active part:
+
+#. select in the Main Menu *Features - > Revolution Cut* item  or
+#. click **Revolution Cut** button in the toolbar
+
+.. image:: images/revolution_cut_btn.png
+   :align: center
+
+.. centered::
+   **Revolution Cut** button
+
+The following property panel will be opened:
 
 .. image:: images/StartSketch.png
   :align: center
@@ -9,16 +23,83 @@ Revolution cut
 .. centered::
   Start sketch
 
+After selecting one of the options property panel for Revolution Cut will be opened with two variants:
+
+.. image:: images/revolution_by_angles.png
+   :align: left
+**By Angles** revolves objects by specifying angles.
+
+.. image:: images/revolution_by_bounding_planes.png
+   :align: left
+**By Bounding Planes** revolves objects by specifying bounding planes and angles.
+
+
+By angles
+--------
 
 .. image:: images/RevolutionCut1.png
   :align: center
 
 .. centered::
-  Revolution: definition by angles
+  Revolution Cut: definition by angles
+
+- **Base objects** contains a list of objects selected in the Object Browser or in the Viewer, which will be revolved.
+- **Axis** axis of revolution.
+- **To angle** end angle of revolution.
+- **From angle** start angle of revolution.
+- **Cut from** contains a list of objects which will but cut with the result of revolution.
+
+**TUI Command**:  *model.addRevolutionCut(part, objectsToRevolve, axis, angle, objectToCut);*
+
+**Arguments**:   Part + list of objects for revolution + axis + angle + list of objects to cut from.
+
+**TUI Command**:  *model.addRevolutionCut(part, objectsToRevolve, axis, toAngle, fromAngle, objectToCut);*
+
+**Arguments**:   Part + list of objects for revolution + axis + to angle + from angle + list of objects to cut from.
+
+Result
+""""""
+
+The Result of the operation will be an revolved shape:
+
+.. image:: images/revolution_cut_by_angles_result.png
+          :align: center
+
+.. centered::
+   **Revolution Cut created**
+
+**See Also** a sample TUI Script of a :ref:`tui_create_revolution_cut_by_angles` operation.
 
+By bounding planes
+------------------
 
 .. image:: images/RevolutionCut2.png
   :align: center
 
 .. centered::
-  Extrusion: definition by bounding planes
+  Revolution Cut: definition by bounding planes
+
+- **Base objects** contains a list of objects selected in the Object Browser or in the Viewer, which will be revolved.
+- **Axis** axis of revolution.
+- **To plane** planar face can be selected to bound revolution from one side.
+- **To offset** offset for revolution or for bounding plane if selected.
+- **From plane** planar face can be selected to bound revolution from other side.
+- **From offset** offset for revolution or for bounding plane if selected.
+- **Cut from** contains a list of objects which will but cut with the result of revolution.
+
+**TUI Command**:  *model.addRevolutionCut(part, objectsToRevolve, axis, toObject, toOffset, fromObject, fromOffset, objectToCut);*
+
+**Arguments**:   Part + list of objects for revolution + axis + to object + to offset + from object + from offset + list of objects to cut from.
+
+Result
+""""""
+
+The Result of the operation will be an revolved shape:
+
+.. image:: images/revolution_cut_by_bounding_planes_result.png
+          :align: center
+
+.. centered::
+   **Revolution Cut created**
+
+**See Also** a sample TUI Script of a :ref:`tui_create_revolution_cut_by_bounding_planes` operation.
\ No newline at end of file
index ca419aa147039b958e2399133c45704ebd00f08e..775c46b20c829786a62497ca9e685095dcc7b261 100644 (file)
@@ -1,8 +1,21 @@
-.. _featureRevolution:
 
 Revolution
 ==========
 
+Revolution feature revolves selected objects around selected axis.
+
+To perform Revolution in the active part:
+
+#. select in the Main Menu *Features - > Revolution* item  or
+#. click **Revolution** button in the toolbar
+
+.. image:: images/revolution_btn.png
+   :align: center
+
+.. centered::
+   **Revolution** button
+
+The following property panel will be opened:
 
 .. image:: images/StartSketch.png
   :align: center
@@ -10,6 +23,19 @@ Revolution
 .. centered::
   Start sketch
 
+After selecting one of the options property panel for Revolution will be opened with two variants:
+
+.. image:: images/revolution_by_angles.png
+   :align: left
+**By Angles** revolves objects by specifying angles.
+
+.. image:: images/revolution_by_bounding_planes.png
+   :align: left
+**By Bounding Planes** revolves objects by specifying bounding planes and angles.
+
+
+By angles
+--------
 
 .. image:: images/Revolution1.png
   :align: center
@@ -17,9 +43,61 @@ Revolution
 .. centered::
   Revolution: definition by angles
 
+- **Base objects** contains a list of objects selected in the Object Browser or in the Viewer, which will be revolved.
+- **Axis** axis of revolution.
+- **To angle** end angle of revolution.
+- **From angle** start angle of revolution.
+
+**TUI Command**:  *model.addRevolution(part, objects, axis, angle);*
+
+**Arguments**:   Part + list of objects + axis + angle.
+
+**TUI Command**:  *model.addRevolution(part, objects, axis, toSize, fromSize);*
+
+**Arguments**:   Part + list of objects + axis + to angle + from angle.
+
+Result
+""""""
+
+The Result of the operation will be an revolved shape:
+
+.. image:: images/revolution_by_angles_result.png
+          :align: center
+
+.. centered::
+   **Revolution created**
+
+**See Also** a sample TUI Script of a :ref:`tui_create_revolution_by_angles` operation.
+
+By bounding planes
+------------------
 
 .. image:: images/Revolution2.png
   :align: center
 
 .. centered::
-  Extrusion: definition by bounding planes
+  Revolution: definition by bounding planes
+
+- **Base objects** contains a list of objects selected in the Object Browser or in the Viewer, which will be revolved.
+- **Axis** axis of revolution.
+- **To plane** planar face can be selected to bound revolution from one side.
+- **To offset** offset for revolution or for bounding plane if selected.
+- **From plane** planar face can be selected to bound revolution from other side.
+- **From offset** offset for revolution or for bounding plane if selected.
+
+**TUI Command**:  *model.addRevolution(part, objects, axis, toObject, toOffset, fromObject, fromOffset);*
+
+**Arguments**:   Part + list of objects + axis + to object + to offset + from object + from offset.
+
+Result
+""""""
+
+The Result of the operation will be an revolved shape:
+
+.. image:: images/revolution_by_bounding_planes_result.png
+          :align: center
+
+.. centered::
+   **Revolution created**
+
+**See Also** a sample TUI Script of a :ref:`tui_create_revolution_by_bounding_planes` operation.
\ No newline at end of file
index 77e77eb8406f5be82bf5fae9816563a719080c1c..b78b1d2e4d06ab7822f6b737f773285af41ab207 100644 (file)
@@ -1,7 +1,21 @@
 
-Revolution fuse
+Revolution Fuse
 ===============
 
+Revolution Fuse feature revolves selected objects around selected axis and fuses result from other objects.
+
+To perform Revolution Fuse in the active part:
+
+#. select in the Main Menu *Features - > Revolution Fuse* item  or
+#. click **Revolution Fuse** button in the toolbar
+
+.. image:: images/revolution_fuse_btn.png
+   :align: center
+
+.. centered::
+   **Revolution Fuse** button
+
+The following property panel will be opened:
 
 .. image:: images/StartSketch.png
   :align: center
@@ -9,16 +23,83 @@ Revolution fuse
 .. centered::
   Start sketch
 
+After selecting one of the options property panel for Revolution Fuse will be opened with two variants:
+
+.. image:: images/revolution_by_angles.png
+   :align: left
+**By Angles** revolves objects by specifying angles.
+
+.. image:: images/revolution_by_bounding_planes.png
+   :align: left
+**By Bounding Planes** revolves objects by specifying bounding planes and angles.
+
+
+By angles
+--------
 
 .. image:: images/RevolutionFuse1.png
   :align: center
 
 .. centered::
-  Revolution: definition by angles
+  Revolution Fuse: definition by angles
+
+- **Base objects** contains a list of objects selected in the Object Browser or in the Viewer, which will be revolved.
+- **Axis** axis of revolution.
+- **To angle** end angle of revolution.
+- **From angle** start angle of revolution.
+- **Fuse with** contains a list of objects which will but fuse with the result of revolution.
+
+**TUI Command**:  *model.addRevolutionFuse(part, objectsToRevolve, axis, angle, objectToFuse);*
+
+**Arguments**:   Part + list of objects for revolution + axis + angle + list of objects to fuse with.
+
+**TUI Command**:  *model.addRevolutionFuse(part, objectsToRevolve, axis, toAngle, fromAngle, objectToFuse);*
+
+**Arguments**:   Part + list of objects for revolution + axis + to angle + from angle + list of objects to fuse with.
+
+Result
+""""""
+
+The Result of the operation will be an revolved shape:
+
+.. image:: images/revolution_fuse_by_angles_result.png
+          :align: center
+
+.. centered::
+   **Revolution Fuse created**
+
+**See Also** a sample TUI Script of a :ref:`tui_create_revolution_fuse_by_angles` operation.
 
+By bounding planes
+------------------
 
 .. image:: images/RevolutionFuse2.png
   :align: center
 
 .. centered::
-  Extrusion: definition by bounding planes
+  Revolution Fuse: definition by bounding planes
+
+- **Base objects** contains a list of objects selected in the Object Browser or in the Viewer, which will be revolved.
+- **Axis** axis of revolution.
+- **To plane** planar face can be selected to bound revolution from one side.
+- **To offset** offset for revolution or for bounding plane if selected.
+- **From plane** planar face can be selected to bound revolution from other side.
+- **From offset** offset for revolution or for bounding plane if selected.
+- **Fuse with** contains a list of objects which will but fuse with the result of revolution.
+
+**TUI Command**:  *model.addRevolutionFuse(part, objectsToRevolve, axis, toObject, toOffset, fromObject, fromOffset, objectToFuse);*
+
+**Arguments**:   Part + list of objects for revolution + axis + to object + to offset + from object + from offset + list of objects to fuse with.
+
+Result
+""""""
+
+The Result of the operation will be an revolved shape:
+
+.. image:: images/revolution_fuse_by_bounding_planes_result.png
+          :align: center
+
+.. centered::
+   **Revolution Fuse created**
+
+**See Also** a sample TUI Script of a :ref:`tui_create_revolution_fuse_by_bounding_planes` operation.
\ No newline at end of file
index a311dac3255d4cab220f79ea831615c8e73f6e2f..efb06394c70ed8549203f8f640322027929705ae 100644 (file)
@@ -2,9 +2,9 @@
 Union
 =====
 
-The feature Union implements a boolean operation for creation of a uniono of selected objects.
+The feature Union implements a boolean operation for creation of a union of selected objects.
 
-To a create boolean opration Union in the active part:
+To a create boolean operation Union in the active part:
 
 #. select in the Main Menu *Features - > Union* item  or
 #. click **Union** button in the toolbar
@@ -23,7 +23,7 @@ The following property panel will be opened:
 .. centered::
    **Union operation**
 
-Here it is necessary to select some objects.
+Here it is necessary to select some objects. Only faces with shared edges or solids with shared faces are allowed for selection.
 
 **Apply** button creates the union shape.