Salome HOME
Merge branch 'master' of https://codev-tuleap.cea.fr/plugins/git/salome/shaper
[modules/shaper.git] / src / BuildPlugin / doc / compoundFeature.rst
1 .. |feature_compound.icon|    image:: images/feature_compound.png
2
3 Compound
4 ========
5
6 Compound feature creates a compound using shapes already existing in other objects.
7
8 To create a compound in the active part:
9
10 #. select in the Main Menu *Build - > Compound* item  or
11 #. click |feature_compound.icon| **Compound** button in the toolbar
12
13 The following property panel will be opened:
14
15 .. figure:: images/Compound.png
16   :align: center
17
18   Create a compound
19
20 Select one or several shapes in the viewer. The selected shapes can be of any type (vertex, edge, face, etc.)
21
22 **Apply** button creates a compound.
23
24 **Cancel** button cancels the operation. 
25
26 **TUI Command**:
27
28 .. py:function:: model.addCompound(Part_doc, Shapes)
29
30     :param part: The current part object.
31     :param list: A list of shapes.
32     :return: Result object.
33
34 Result
35 """"""
36
37 The result of the operation will be a compound created from the selected shapes:
38
39 .. figure:: images/CreateCompound.png
40   :align: center
41
42   Result of the operation.
43
44 **See Also** a sample TUI Script of :ref:`tui_create_compound` operation.