1 .. |bool_cut.icon| image:: images/bool_cut.png
9 Cut feature implements a Boolean operation to cut tool objects from main objects.
11 To perform a Cut operationin the active part:
13 #. select in the Main Menu *Features - > Cut* item or
14 #. click |bool_cut.icon| **Cut** button in the toolbar
16 The following property panel will be opened:
18 .. figure:: images/boolean_cut_property_panel.png
23 - **Main Objects** contains a list of objects selected in the Object Browser or in the Viewer, which will be cut by tool objects.
24 Any kind of shape can be selected, including subshapes of compsolids/compounds.
25 In this case only selected subshapes will be cut, others will stay untouched (as much as possible).
26 - **Tool Objects** contains a list of objects selected in the Object Browser or in the Viewer, which will cut main objects.
27 Any kind of shape can be selected, including subshapes of compsolids/compounds.
28 Non-selected subshapes from compsolids/compounds will be ignored.
29 - **Fuzzy Parameter** defines the additional tolerance value used to eliminate tiny results.
30 - **See preview** button shows a result of the operation.
32 The minimal dimension of Tool Objects should be not less than the maximal dimension of Main Objects.
36 .. py:function:: model.addCut(Part_doc, mainObjects, toolObjects, fuzzy)
38 :param part: The current part object
39 :param list: A list of main objects.
40 :param list: A list of tool objects.
41 :param real: Additional tolerance used to eliminate tiny results (optional).
42 :return: Created object
47 A result shape which is a cut by tool objects from main object, will be produced for each selected object:
49 .. figure:: images/CreatedCut.png
54 If a subsolid (yellow wireframe) of a compsolid was selected:
56 .. figure:: images/boolean_cut_subsolids_arguments.png
61 it will be cut in the result and not selected subsolids will be added to it:
63 .. figure:: images/boolean_cut_subsolids_result.png
66 **Cut subsolid result**
69 **See Also** a sample TUI Script of :ref:`tui_create_cut` operation.