1 .. |feature_subshapes.icon| image:: images/feature_subshapes.png
6 The feature **Sub-shapes** modifies the selected entity by creating a non-manifold topology. It gives the possibility to:
8 * add/remove vertices lying on edges of a wire;
9 * add/remove edges and vertices lying on a face.
11 To create Sub-shapes in the active part:
13 #. select in the Main Menu *Build - > Sub-shapes* item or
14 #. click |feature_subshapes.icon| **Sub-shapes** button in the toolbar
16 The following property panel appears.
18 .. figure:: images/SubShapes.png
21 Sub-shapes property panel
25 - **Shape** panel contains the shape to be modified. The shape is selected in 3D OCC viewer or object browser. For today it has to be a wire or a face;
26 - **Sub-shapes** panel contains the list of sub-shapes which are already included into result. A sub-shape can be deleted from the list or the list can be extended with new shapes selected in the view.
30 .. py:function:: model.addSubShapes(Part_doc, shape, sub-shapes)
32 :param part: The current part object.
33 :param object: A shape in format *model.selection(TYPE, shape)*.
34 :param list: A list of sub-shapes in format *model.selection(TYPE, subshape)*.
35 :return: Result object.
39 The result replaces the original shape with its copy with added/removed sub-shapes.
41 .. figure:: images/CreateSubShapes.png
46 **See Also** a sample TUI Script of :ref:`tui_create_subshape` operation.