1 .. |pipe.icon| image:: images/pipe.png
6 **Pipe** feature makes an extruded Pipe shape.
8 To create a Pipe in the active part:
10 #. select in the Main Menu *Features - > Pipe* item or
11 #. click |pipe.icon| **Pipe** button in the toolbar
13 Pipe can be created in three different ways:
15 .. image:: images/pipe_simple_32x32.png
19 .. image:: images/pipe_binormal_32x32.png
21 by object, path and Bi-normal
23 .. image:: images/pipe_locations_32x32.png
25 by object, path and locations
27 Pipe by object and path
28 -----------------------
30 Base Objects are extruded along the Path Object so that the angle between the normal vector to the base shape and the tangent to the path remain constant at any point of the given path.
32 .. image:: images/Pipe1.png
36 Pipe by object and path property panel
40 - **Base objects** panel contains shapes to be extruded. Several Base Objects generate several pipes. Shapes (edges, faces, shells) are selected in 3D OCC viewer or object browser;
41 - **Path object** defines the path along which the Base Object will be extruded. **Path object** (edge or wire) is selected in 3D OCC viewer or object browser;
45 .. py:function:: model.addPipe(Part_doc, [shape], path)
47 :param part: The current part object.
48 :param list: A list of shapes in format *model.selection(TYPE, shape)*.
49 :param object: A path in format *model.selection(TYPE, shape)*.
50 :return: Created object.
55 Result of extrusion of an arc along another arc.
57 .. image:: images/simplePipe.png
61 Pipe by object and path
63 **See Also** a sample TUI Script of ref:`tui_simple_pipe` operation.
65 Pipe by object, path and Bi-normal
66 ----------------------------------
68 The pipe is generated to preserve the constant angle between the normal vector to the base shape and the BiNormal vector at any point of the given path.
70 .. image:: images/Pipe2.png
74 Pipe by object, path and Bi-normal property panel
78 - **Base objects** panel contains shapes to be extruded. Several Base Objects generate several pipes. Shapes (edges, faces, shells) are selected in 3D OCC viewer or object browser;
79 - **Path object** defines the path along which the Base Object will be extruded. **Path object** (edge or wire) is selected in 3D OCC viewer or object browser;
80 - **Bi-Normal** defines the BiNormal Vector. **Bi-Normal** (edge or wire) is selected in 3D OCC viewer or object browser.
84 .. py:function:: model.addPipe(Part_doc, [shape], path, binormal)
86 :param part: The current part object.
87 :param list: A list of shapes in format *model.selection(TYPE, shape)*.
88 :param object: A path in format *model.selection(TYPE, shape)*.
89 :param object: A binormal in format *model.selection(TYPE, shape)*.
90 :return: Created object.
95 Result of extrusion of a rectangular face along arc.
97 .. image:: images/binormalPipe.png
101 Pipe by object, path and Bi-normal
103 **See Also** a sample TUI Script of :ref:`tui_binormal_pipe` operation.
105 Pipe by object, path and locations
106 ----------------------------------
108 The pipe is generated to preserve selected profiles at the specified locations along the path.
110 .. image:: images/Pipe3.png
114 Pipe by object, path and locations property panel
118 - **Base objects** panel contains shapes to be extruded. Shapes (edges, faces, shells) are selected in 3D OCC viewer or object browser;
119 - **Path object** defines the path along which the Base Object will be extruded. **Path object** (edge or wire) is selected in 3D OCC viewer or object browser;
120 - **Locations** define the list of vertices that specify the locations of extruded Base Objects on the resulting Path Object. The number of Base Objects should be equal to the number of Locations.
124 .. py:function:: model.addPipe(Part_doc, [shape], path, locations)
126 :param part: The current part object.
127 :param list: A list of shapes in format *model.selection(TYPE, shape)*.
128 :param object: A path in format *model.selection(TYPE, shape)*.
129 :param list: A list of locations in format *model.selection(TYPE, shape)*.
130 :return: Created object.
135 Result of extrusion of 3 circles along arc with specified locations.
137 .. image:: images/locationPipe.png
141 Pipe by object, path and locations
143 **See Also** a sample TUI Script of :ref:`tui_locations_pipe` operation.