.. _featuresPlugin:
-
Features plug-in
================
-
.. toctree::
:titlesonly:
:maxdepth: 1
-
- angularCopyFeature.rst
+
commonFeature.rst
cutFeature.rst
extrusionCutFeature.rst
fillFeature.rst
filletFeature.rst
fuseFeature.rst
- intersectionFeature.rst
- linearCopyFeature.rst
- measurementFeature.rst
+ intersectionFeature.rst
partitionFeature.rst
- pipeFeature.rst
- placementFeature.rst
+ pipeFeature.rst
recoverFeature.rst
removeSubShapesFeature.rst
revolutionCutFeature.rst
revolutionFeature.rst
revolutionFuseFeature.rst
- rotationFeature.rst
- smashFeature.rst
- symmetryFeature.rst
- transformationFeature.rst
- translationFeature.rst
+ smashFeature.rst
unionFeature.rst
+++ /dev/null
-
- .. _tui_create_placement:
-
-Create Placement
-================
-
-.. literalinclude:: examples/placement.py
- :linenos:
- :language: python
-
-:download:`Download this script <examples/placement.py>`
-
+++ /dev/null
-
-Angular copy
-============
-
-
-.. image:: images/AngularCopy.png
- :align: center
-
-.. centered::
- Angular copy definition
+++ /dev/null
-# -*- 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/Front"))
-SketchCircle_1 = Sketch_1.addCircle(20, 6, 3)
-model.do()
-Extrusion_1 = model.addExtrusion(Part_1_doc,
- [model.selection("FACE", "Sketch_1/Face-SketchCircle_1_2f")],
- model.selection(), -10, 0)
-Placement_1 = model.addPlacement(Part_1_doc,
- [model.selection("SOLID", "Extrusion_1_1")],
- model.selection("FACE", "Extrusion_1_1/From_Face_1"),
- model.selection("FACE", "Box_1_1/Front"), False, True)
-model.do()
-model.end()
+++ /dev/null
-
-Linear copy
-===========
-
-
-.. image:: images/LinearCopy.png
- :align: center
-
-.. centered::
- Linear copy
+++ /dev/null
-
-Measurement
-===========
-
-
-.. image:: images/Measurement1.png
- :align: center
-
-.. centered::
- Edge length
-
-
-
-.. image:: images/Measurement2.png
- :align: center
-
-.. centered::
- Distance between objects
-
-
-
-.. image:: images/Measurement3.png
- :align: center
-
-.. centered::
- Radius
-
-
-
-.. image:: images/Measurement4.png
- :align: center
-
-.. centered::
- Angle between edges
-
-
-
-.. image:: images/Measurement5.png
- :align: center
-
-.. centered::
- Angle by 3 points
+++ /dev/null
-
-Placement
-=========
-
-Placement lets to place a one object relatively to another object. To make a placement:
-
-#. select in the Main Menu *Part - > Placement* item or
-#. click **Placement** button in the toolbar
-
-.. image:: images/placement_btn.png
- :align: center
-
-.. centered::
- **Placement** button
-
-The following property panel will be opened:
-
-.. image:: images/Placement.png
- :align: center
-
-.. centered::
- **Placement operation**
-
-In this property panel it is necessary:
-
-- Select objects which will be moved.
-
-- Select a face, edge or vertex as a start for moving
-
-- Select a face, edge or vertex as an end of moving
-
-- Define state of **Reverse** and **Centering** check boxes.
-
-
-
-**Apply** button creates the placement.
-
-**Cancel** button cancels the operation.
-
-**TUI Command**: *model.addPlacement(Part_doc, placeObjects, startShape, endShape, isReverse, isCentering)*
-
-**Arguments**: Part + list of objects to move + start shape + end shape + is reverse flag + is centering flag.
-
-The Result of the operation will be a new placement of selected objects:
-
-.. image:: images/CreatedPlacement.png
- :align: center
-
-.. centered::
- **Placement created**
-
-**See Also** a sample TUI Script of a :ref:`tui_create_placement` operation.
+++ /dev/null
-
-Rotation
-========
-
-
-.. image:: images/Rotation1.png
- :align: center
-
-.. centered::
- Rotation by axis and angle
-
-
-.. image:: images/Rotation2.png
- :align: center
-
-.. centered::
- Rotation by center and points
+++ /dev/null
-
-Symmetry
-========
-
-
-.. image:: images/Symmetry.png
- :align: center
-
-.. centered::
- Symmetry definition
+++ /dev/null
-
-Scale
-=====
-
-
-.. image:: images/Scale1.png
- :align: center
-
-.. centered::
- Scale: define by a one common factor
-
-
-.. image:: images/Scale2.png
- :align: center
-
-.. centered::
- Scale: define by different factors
+++ /dev/null
-
-Translation
-===========
-
-
-.. image:: images/Translation1.png
- :align: center
-
-.. centered::
- Translation by axis and distance
-
-
-.. image:: images/Translation2.png
- :align: center
-
-.. centered::
- By vector
-
-
-.. image:: images/Translation3.png
- :align: center
-
-.. centered::
- By two points
--- /dev/null
+
+ .. _tui_create_placement:
+
+Create Placement
+================
+
+.. literalinclude:: examples/placement.py
+ :linenos:
+ :language: python
+
+:download:`Download this script <examples/placement.py>`
+
--- /dev/null
+
+Angular copy
+============
+
+
+.. image:: images/AngularCopy.png
+ :align: center
+
+.. centered::
+ Angular copy definition
--- /dev/null
+# -*- 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/Front"))
+SketchCircle_1 = Sketch_1.addCircle(20, 6, 3)
+model.do()
+Extrusion_1 = model.addExtrusion(Part_1_doc,
+ [model.selection("FACE", "Sketch_1/Face-SketchCircle_1_2f")],
+ model.selection(), -10, 0)
+Placement_1 = model.addPlacement(Part_1_doc,
+ [model.selection("SOLID", "Extrusion_1_1")],
+ model.selection("FACE", "Extrusion_1_1/From_Face_1"),
+ model.selection("FACE", "Box_1_1/Front"), False, True)
+model.do()
+model.end()
--- /dev/null
+
+Linear copy
+===========
+
+
+.. image:: images/LinearCopy.png
+ :align: center
+
+.. centered::
+ Linear copy
--- /dev/null
+
+Measurement
+===========
+
+
+.. image:: images/Measurement1.png
+ :align: center
+
+.. centered::
+ Edge length
+
+
+
+.. image:: images/Measurement2.png
+ :align: center
+
+.. centered::
+ Distance between objects
+
+
+
+.. image:: images/Measurement3.png
+ :align: center
+
+.. centered::
+ Radius
+
+
+
+.. image:: images/Measurement4.png
+ :align: center
+
+.. centered::
+ Angle between edges
+
+
+
+.. image:: images/Measurement5.png
+ :align: center
+
+.. centered::
+ Angle by 3 points
--- /dev/null
+
+Placement
+=========
+
+Placement lets to place a one object relatively to another object. To make a placement:
+
+#. select in the Main Menu *Part - > Placement* item or
+#. click **Placement** button in the toolbar
+
+.. image:: images/placement_btn.png
+ :align: center
+
+.. centered::
+ **Placement** button
+
+The following property panel will be opened:
+
+.. image:: images/Placement.png
+ :align: center
+
+.. centered::
+ **Placement operation**
+
+In this property panel it is necessary:
+
+- Select objects which will be moved.
+
+- Select a face, edge or vertex as a start for moving
+
+- Select a face, edge or vertex as an end of moving
+
+- Define state of **Reverse** and **Centering** check boxes.
+
+
+
+**Apply** button creates the placement.
+
+**Cancel** button cancels the operation.
+
+**TUI Command**: *model.addPlacement(Part_doc, placeObjects, startShape, endShape, isReverse, isCentering)*
+
+**Arguments**: Part + list of objects to move + start shape + end shape + is reverse flag + is centering flag.
+
+The Result of the operation will be a new placement of selected objects:
+
+.. image:: images/CreatedPlacement.png
+ :align: center
+
+.. centered::
+ **Placement created**
+
+**See Also** a sample TUI Script of a :ref:`tui_create_placement` operation.
--- /dev/null
+
+Rotation
+========
+
+
+.. image:: images/Rotation1.png
+ :align: center
+
+.. centered::
+ Rotation by axis and angle
+
+
+.. image:: images/Rotation2.png
+ :align: center
+
+.. centered::
+ Rotation by center and points
--- /dev/null
+
+Symmetry
+========
+
+
+.. image:: images/Symmetry.png
+ :align: center
+
+.. centered::
+ Symmetry definition
--- /dev/null
+
+Scale
+=====
+
+
+.. image:: images/Scale1.png
+ :align: center
+
+.. centered::
+ Scale: define by a one common factor
+
+
+.. image:: images/Scale2.png
+ :align: center
+
+.. centered::
+ Scale: define by different factors
--- /dev/null
+
+Translation
+===========
+
+
+.. image:: images/Translation1.png
+ :align: center
+
+.. centered::
+ Translation by axis and distance
+
+
+.. image:: images/Translation2.png
+ :align: center
+
+.. centered::
+ By vector
+
+
+.. image:: images/Translation3.png
+ :align: center
+
+.. centered::
+ By two points