1 .. |bool_smash.icon| image:: images/bool_smash.png
7 Smash feature implements a boolean operation for smashing a set of main objects by a set of tool objects.
9 To create a Smash in the active part:
11 #. select in the Main Menu *Features - > Smash* item or
12 #. click |bool_smash.icon| **Smash** button in the toolbar
14 The following property panel will be opened:
16 .. figure:: images/Smash.png
21 - **Main Objects** contains a list of objects selected in the Object Browser or in the Viewer, which will be smashed by tool objects.
22 If a subshape that belongs to a compsolid/compound was selected, other shapes of this compsolid/compound will be cut from
23 other objects (to avoid self intersection) and added to the result.
24 - **Tool Objects** contains a list of objects selected in the Object Browser or in the Viewer, which will be smashed into main objects.
25 If a subshape that belongs to a compsolid/compound was selected, other shapes of this compsolid/compound will be ignored.
26 - **See preview** button shows a result of the operation.
30 .. py:function:: model.addSmash(Part_doc, mainObjects, toolObjects)
32 :param part: The current part object.
33 :param list: A list of main objects.
34 :param list: A list of tool objects.
35 :return: Rotated object.
40 The Result of the operation will be a shape which is a smash of tool objects from main objects:
42 .. figure:: images/CreatedSmash.png
47 **See Also** a sample TUI Script of :ref:`tui_create_smash` operation.