1 .. |extrusion_btn.icon| image:: images/extrusion_btn.png
8 Extrusion feature extrudes selected objects along their normals or the selected axis.
10 To perform Extrusion in the active part:
12 #. select in the Main Menu *Features - > Extrusion* item or
13 #. click |extrusion_btn.icon| **Extrusion** button in the toolbar
15 The following property panel will be opened:
17 .. figure:: images/StartSketch.png
22 There are two variants of the property panel for Extrusion depending on the chosen option:
24 .. figure:: images/extrusion_by_sizes.png
28 **By Sizes** extrudes objects by specifying sizes.
30 .. figure:: images/extrusion_by_bounding_planes.png
34 **By Bounding Faces** extrudes objects by specifying bounding faces/planes and offsets.
36 --------------------------------------------------------------------------------
41 .. figure:: 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 .. figure:: images/extrusion_by_sizes_result.png
95 **See Also** a sample TUI Script of :ref:`tui_create_extrusion_by_sizes` operation.
100 .. figure:: images/Extrusion2.png
103 Extrusion: definition by bounding faces
105 - **Base objects** - contains a list of objects selected in the Object Browser or in the Viewer, which will be extruded.
106 - **Axis** if selected, it will be direction of extrusion, otherwise objects normals will be used.
107 - **To face** - a face can be selected to bound extrusion from one side.
108 - **To offset** - offset for extrusion or for bounding plane, if selected.
109 - **From face** - a face can be selected to bound extrusion from the other side.
110 - **From offset** - offset for extrusion or for bounding plane, if selected.
112 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.
113 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.
117 .. py:function:: model.addExtrusion(part, objects, toObject, toOffset, fromObject, fromOffset)
119 :param part: The current part object.
120 :param list: A list of objects for extrusion.
121 :param object: "To object"
122 :param number: "To offset".
123 :param object: "From object"
124 :param number: "From offset".
125 :return: Created object.
127 .. py:function:: model.addExtrusion(part, objects, direction, toObject, toOffset, fromObject, fromOffset)
129 :param part: The current part object.
130 :param list: A list of objects for extrusion.
131 :param object: A direction of extrusion
132 :param object: "To object"
133 :param number: "To offset".
134 :param object: "From object"
135 :param number: "From offset".
136 :return: Created object.
141 The Result of the operation will be an extruded shape:
143 .. figure:: images/extrusion_by_bounding_planes_result.png
146 **Created Extrusion**
148 **See Also** a sample TUI Script of :ref:`tui_create_extrusion_by_bounding_planes` operation.