--- /dev/null
+
+ .. _tui_create_compound:
+
+Create Compound
+===============
+
+.. literalinclude:: examples/compound.py
+ :linenos:
+ :language: python
+
+:download:`Download this script <examples/compound.py>`
+
--- /dev/null
+
+ .. _tui_create_compsolid:
+
+Create CompSolid
+================
+
+.. literalinclude:: examples/compsolid.py
+ :linenos:
+ :language: python
+
+:download:`Download this script <examples/compsolid.py>`
+
--- /dev/null
+
+ .. _tui_create_filling:
+
+Create Filling
+==============
+
+.. literalinclude:: examples/filling.py
+ :linenos:
+ :language: python
+
+:download:`Download this script <examples/filling.py>`
+
--- /dev/null
+
+ .. _tui_create_interpolation:
+
+Create Interpolation
+====================
+
+.. literalinclude:: examples/interpolation.py
+ :linenos:
+ :language: python
+
+:download:`Download this script <examples/interpolation.py>`
+
Compound
========
-The feature lets to create
+To create compound in the active part:
+
+#. select in the Main Menu *Build - > Compound* item or
+#. click **Compound** button in the toolbar
+
+.. image:: images/feature_compound.png
+ :align: center
+
+.. centered::
+ **Compound** button
+
+The following property panel will be opened:
.. image:: images/Compound.png
:align: center
.. centered::
Create a compound
+
+Select one or several shapes in a viewer. Selected shapes can be of any type (vertex, edge, face and so on).
+
+**Apply** button creates compound.
+
+**Cancel** button cancels operation.
+
+**TUI Command**: *model.addCompound(Part_doc, Shapes)*
+
+**Arguments**: Part document + list of shapes.
+
+The result of the operation will be a compound created from selected shapes:
+
+.. image:: images/CreateCompound.png
+ :align: center
+
+.. centered::
+ Result of the operation.
+
+**See Also** a sample TUI Script of a :ref:`tui_create_compound` operation.
CompSolid
=========
+To create compsolid in the active part:
+
+#. select in the Main Menu *Build - > CompSolid* item or
+#. click **CompSolid** button in the toolbar
+
+.. image:: images/feature_compsolid.png
+ :align: center
+
+.. centered::
+ **CompSolid** button
+
+The following property panel will be opened:
.. image:: images/Compsolid.png
:align: center
.. centered::
Create a compsolid
+
+Select one or several shapes in a viewer.
+
+**Apply** button creates compsolid.
+
+**Cancel** button cancels operation.
+
+**TUI Command**: *model.addCompSolid(Part_doc, Shapes)*
+
+**Arguments**: Part document + list of shapes.
+
+The result of the operation will be a compsolid created from the selected shapes:
+
+.. image:: images/CreateCompsolid.png
+ :align: center
+
+.. centered::
+ Result of the operation.
+
+**See Also** a sample TUI Script of a :ref:`tui_create_compsolid` operation.
**Cancel** button cancels operation.
-The result of the operation will be set of vertices created from selected shapes:
+**TUI Command**: *model.addEdge(Part_doc, Shapes)*
+
+**Arguments**: Part document + list of shapes.
+
+The result of the operation will be set of edges created from selected shapes:
.. image:: images/CreateEdge.png
:align: center
--- /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)
+Compound_1_objects = [model.selection("FACE", "Box_1_1/Front"),
+ model.selection("EDGE", "Box_1_1/Left&Box_1_1/Top"),
+ model.selection("VERTEX", "Box_1_1/Back&Box_1_1/Right&Box_1_1/Top"),
+ model.selection("EDGE", "Box_1_1/Back&Box_1_1/Top")]
+Compound_1 = model.addCompound(Part_1_doc, Compound_1_objects)
+model.do()
+model.end()
--- /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)
+CompSolid_1 = model.addCompSolid(Part_1_doc, [model.selection("SOLID", "Box_1_1")])
+model.do()
+model.end()
--- /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)
+Edges = [model.selection("EDGE", "Box_1_1/Left&Box_1_1/Top"),
+ model.selection("EDGE", "Box_1_1/Front&Box_1_1/Top")]
+Filling_1 = model.addFilling(Part_1_doc, Edges)
+model.do()
+model.end()
--- /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)
+Interpolation_1_objects = [model.selection("VERTEX", "Box_1_1/Back&Box_1_1/Left&Box_1_1/Top"),
+ model.selection("VERTEX", "Box_1_1/Back&Box_1_1/Right&Box_1_1/Top"),
+ model.selection("VERTEX", "Box_1_1/Front&Box_1_1/Left&Box_1_1/Top"),
+ model.selection("VERTEX", "Box_1_1/Front&Box_1_1/Right&Box_1_1/Top")]
+Interpolation_1 = model.addInterpolation(Part_1_doc, Interpolation_1_objects, True, False)
+model.do()
+model.end()
**Cancel** button cancels operation.
+**TUI Command**: *model.addFace(Part_doc, Shapes)*
+
+**Arguments**: Part document + list of shapes.
+
The result of the operation will be set of faces created from selected shapes:
.. image:: images/CreateFace.png
- Filling
- =======
+Filling
+=======
+To create filling in the active part:
+
+#. select in the Main Menu *Build - > Filling* item or
+#. click **Filling** button in the toolbar
+
+.. image:: images/feature_filling.png
+ :align: center
+
+.. centered::
+ **Filling** button
+
+The following property panel will be opened:
.. image:: images/Filling.png
:align: center
.. centered::
Create a filling
+
+Select two or more edges in a viewer.
+
+**Advanced options** lets to manage filling process.
+
+**Apply** button creates a filling.
+
+**Cancel** button cancels operation.
+
+**TUI Command**: *model.addFilling(Part_doc, Edges)*
+
+**Arguments**: Part document + list of edges.
+
+The result of the operation will be set of faces created from selected shapes:
+
+.. image:: images/CreateFilling.png
+ :align: center
+
+.. centered::
+ Result of the operation.
+
+**See Also** a sample TUI Script of a :ref:`tui_create_filling` operation.
Interpolation
=============
+To create interpolation in the active part:
+
+#. select in the Main Menu *Build - > Interpolation* item or
+#. click **Interpolation** button in the toolbar
+
+.. image:: images/feature_interpolation.png
+ :align: center
+
+.. centered::
+ **Interpolation** button
+
+The following property panel will be opened:
.. image:: images/Interpolation.png
:align: center
.. centered::
Create an interpolation
+
+Select one or several vertices or points in a viewer.
+
+- **Closed** makes the interpolation curve closed.
+
+- **Reorder** reorders selected points to minimize length of the curve.
+
+- **Tangents** makes start and end of the curve tangent to selected edges. User has to select edges for start and end in corresponded fields.
+
+**Apply** button creates an interpolation.
+
+**Cancel** button cancels operation.
+
+**TUI Command**:
+
+- *model.addInterpolation(Part_doc, Points, IsClosed, IsReordered)*.
+
+**Arguments**: Part document + list of points + is closed + is reordered.
+
+- *model.addInterpolation(Part_doc, Points, StartEdge, EndEdge, IsClosed, IsReordered)*.
+
+**Arguments**: Part document + list of points + start edge + end edge + is closed + is reordered.
+
+The result of the operation will be a curve created from selected shapes:
+
+.. image:: images/CreateInterpolation.png
+ :align: center
+
+.. centered::
+ Result of the operation.
+
+**See Also** a sample TUI Script of a :ref:`tui_create_interpolation` operation.
**Cancel** button cancels operation.
+**TUI Command**: *model.addShell(Part_doc, Objects)*
+
+**Arguments**: Part document + list of shapes.
+
The result of the operation will be shell created from selected shapes:
.. image:: images/CreateShell.png
**Cancel** button cancels operation.
+**TUI Command**: *model.addSolid(Part_doc, Shapes)*
+
+**Arguments**: Part document + list of shapes.
+
The result of the operation will be a solid created from selected shapes:
.. image:: images/CreateSolid.png
**Cancel** button cancels operation.
+**TUI Command**: *model.addVertex(Part_doc, Shapes)*
+
+**Arguments**: Part document + list of shapes.
+
The result of the operation will be set of vertices created from selected shapes:
.. image:: images/CreateVertex.png
**Cancel** button cancels operation.
+**TUI Command**: *model.addWire(Part_doc, Shapes)*
+
+**Arguments**: Part document + list of shapes.
+
The result of the operation will be a wire created from selected shapes:
.. image:: images/CreateWire.png