1 .. |extrusion_btn.icon| image:: images/extrusion_btn.png
6 Extrusion feature extrudes selected objects along their normals or the selected axis.
8 To perform Extrusion in the active part:
10 #. select in the Main Menu *Features - > Extrusion* item or
11 #. click |extrusion_btn.icon| **Extrusion** button in the toolbar
13 The following property panel will be opened:
15 .. image:: images/StartSketch.png
21 There are two variants of the property panel for Extrusion depending on the chosen option:
23 .. image:: images/extrusion_by_sizes.png
27 **By Sizes** extrudes objects by specifying sizes.
29 .. image:: images/extrusion_by_bounding_planes.png
33 **By Bounding Faces** extrudes objects by specifying bounding faces/planes and offsets.
35 --------------------------------------------------------------------------------
40 .. image:: images/Extrusion1.png
44 Extrusion: definition by sizes
46 - **Base objects** - contains a list of objects selected in the Object Browser or in the Viewer, which will be extruded.
47 - **Axis** - if selected, it will be the direction of extrusion, otherwise objects normals will be used.
48 - **To size** - size for extrusion in the direction.
49 - **From size** - size for extrusion in the opposite direction.
53 .. py:function:: model.addExtrusion(part, objects, size)
55 :param part: The current part object.
56 :param list: A list of objects for extrusion.
57 :param number: Size of extrucion.
58 :return: Created object.
60 .. py:function:: model.addExtrusion(part, objects, direction, size)
62 :param part: The current part object.
63 :param list: A list of objects for extrusion.
64 :param object: A direction of extrusion
65 :param number: Size of extrucion.
66 :return: Created object.
68 .. py:function:: model.addExtrusion(part, objects, toSize, fromSize)
70 :param part: The current part object.
71 :param list: A list of objects for extrusion.
72 :param number: "Size to" value.
73 :param number: "Size from" value.
74 :return: Created object.
76 .. py:function:: model.addExtrusion(part, objects, direction, toSize, fromSize)
78 :param part: The current part object.
79 :param list: A list of objects for extrusion.
80 :param object: A direction of extrusion
81 :param number: "Size to" value.
82 :param number: "Size from" value.
83 :return: Created object.
88 The Result of the operation will be an extruded shape:
90 .. image:: images/extrusion_by_sizes_result.png
96 **See Also** a sample TUI Script of :ref:`tui_create_extrusion_by_sizes` operation.
101 .. image:: images/Extrusion2.png
105 Extrusion: definition by bounding faces
107 - **Base objects** - contains a list of objects selected in the Object Browser or in the Viewer, which will be extruded.
108 - **Axis** if selected, it will be direction of extrusion, otherwise objects normals will be used.
109 - **To face** - a face can be selected to bound extrusion from one side.
110 - **To offset** - offset for extrusion or for bounding plane, if selected.
111 - **From face** - a face can be selected to bound extrusion from the other side.
112 - **From offset** - offset for extrusion or for bounding plane, if selected.
114 Planar face selected as a boundary of extrusion will be enlarged infinitely. As a result, extrusion bounded only by planar faces will be completed always.
115 On the other hand, if the boundary face is not planar, extrusion may fail, for example, in case of the base object cannot be projected to this face along given direction.
119 .. py:function:: model.addExtrusion(part, objects, toObject, toOffset, fromObject, fromOffset)
121 :param part: The current part object.
122 :param list: A list of objects for extrusion.
123 :param object: "To object"
124 :param number: "To offset".
125 :param object: "From object"
126 :param number: "From offset".
127 :return: Created object.
129 .. py:function:: model.addExtrusion(part, objects, direction, toObject, toOffset, fromObject, fromOffset)
131 :param part: The current part object.
132 :param list: A list of objects for extrusion.
133 :param object: A direction of extrusion
134 :param object: "To object"
135 :param number: "To offset".
136 :param object: "From object"
137 :param number: "From offset".
138 :return: Created object.
143 The Result of the operation will be an extruded shape:
145 .. image:: images/extrusion_by_bounding_planes_result.png
149 **Created Extrusion**
151 **See Also** a sample TUI Script of :ref:`tui_create_extrusion_by_bounding_planes` operation.