2008-03-07 12:45:34 +05:00
/*!
\page create_extrusion_alongpath_page Pipe Construction
To generate a \b Pipe in the <b>Main Menu</b> select <b>New Entity - > Generation - > Extrusion along a path</b>
2009-02-13 17:16:39 +05:00
\n Firstly, to create an extruded \b Pipe shape, you can define the <b>Base
2008-03-07 12:45:34 +05:00
Object</b> (vertex, edge, planar wire, face or shell), which will be extruded
and the <b>Path Object</b> (edge or wire) along which the <b>Base
2012-08-09 13:58:02 +06:00
Object</b> will be extruded.<br>
It is possible to select in GUI several Base Objects to make several pipes (using Shift button).
2009-02-13 17:16:39 +05:00
\n In this mode the default pipe generation algorithm is used. The pipe
2012-08-09 13:58:02 +06:00
is created so that the <b>angle between the normal vector</b> to
the base shape <b>and the tangent to the path</b> wire remains constant at any point of the
given path.
\n <b>Select unpublished edges</b> checkbox - if checked, allows to select an edge of any other shape as the path object.
2015-03-23 15:02:48 +05:00
\n <b>Generate groups</b> checkbox - if checked allows to create groups of
sub-shapes. For more details on groups creation please refer to
\ref create_groups_page "this description".
2008-03-07 12:45:34 +05:00
\n The \b Result of the operation will be a GEOM_Object (edge, face, shell,
solid or compsolid).
2015-03-23 15:02:48 +05:00
\n <b>TUI Command:</b> <em>geompy.MakePipe(baseShape, pathShape,
IsGenerateGroups=False)</em>
2008-03-07 12:45:34 +05:00
\n <b>Arguments:</b> Name + 1 shape (vertex, edge, planar wire, face or
shell) serving as base object + 1 shape (edge or wire) for
2015-03-23 15:02:48 +05:00
definition of the path + 1 boolean parameter (IsGenerateGroups).
2012-08-09 13:58:02 +06:00
\n <b>Advanced options</b> \ref preview_anchor "Preview"
2008-03-07 12:45:34 +05:00
\image html pipe.png
<b>Example:</b>
2012-08-09 13:58:02 +06:00
\image html pipe_wire_edgesn.png "Extrusion of a wire"
2009-02-13 17:16:39 +05:00
\n Secondly, you can define the <b>Base
Object</b> (edge, planar wire or face), which will be extruded,
the <b>Path Object</b> (edge or wire) along which the <b>Base
2012-08-09 13:58:02 +06:00
Object</b> will be extruded and the <b>BiNormal Vector</b> (edge or
wire).
2009-02-13 17:16:39 +05:00
\n In contrast to the default mode, in this mode the pipe is generated
2012-08-09 13:58:02 +06:00
to preserve the constant <b>angle between the normal vector</b> to the base
shape <b>and the BiNormal vector</b> given as the third argument.
\n <b>Select unpublished edges</b> checkbox - if checked, allows to select an edge of any other shape as the path object.
2015-03-23 15:02:48 +05:00
\n <b>Generate groups</b> checkbox - if checked allows to create groups of
sub-shapes. For more details on groups creation please refer to
\ref create_groups_page "this description".
2009-02-13 17:16:39 +05:00
\n The \b Result of the operation will be a GEOM_Object (edge, face, shell,
solid or compsolid).
2015-03-23 15:02:48 +05:00
\n <b>TUI Command:</b> <em>geompy.MakePipeBiNormalAlongVector(baseShape, pathShape, binormalShape,
IsGenerateGroups=False)</em>
2009-02-13 17:16:39 +05:00
\n <b>Arguments:</b> Name + 1 shape (edge, planar wire or face)
serving as base object + 1 shape (edge or wire) for
definition of the path + 1 shape (edge or wire) to set a fixed
2015-03-23 15:02:48 +05:00
BiNormal direction to perform the extrusion + 1 boolean parameter
(IsGenerateGroups).
2009-02-13 17:16:39 +05:00
\image html pipe2.png
<b>Example:</b>
2008-03-07 12:45:34 +05:00
2012-08-09 13:58:02 +06:00
\image html pipebinormalsn.png "Extrusion of a face with BiNormal parameter"
2008-03-07 12:45:34 +05:00
2014-01-27 18:30:47 +06:00
\n Thirdly, it is possible to additionally select profiles of the pipe object to be built. For this, you can define the following parameters:
- <b>Base Object</b> or a list of objects (edges, planar wires, faces or shells), which will be extruded;
- <b>Locations</b> - a vertex or a list of vertices that specify the locations of extruded <b>Base Objects</b> on the resulting <b>Path Object</b>. The number of Base Objects should be equal to the number of <b>Locations</b>.
- <b>Path Object</b> (edge or wire), along which the <b>Base Object</b> will be extruded.
2013-12-02 13:30:14 +06:00
Additional controls:
2014-01-27 18:30:47 +06:00
- If <b>With contact</b> is checked, the section is translated in contact with the spine.
- If <b>With correction</b> is checked, the section is rotated to be orthogonal to the spine
2013-12-02 13:30:14 +06:00
tangent in the corresponding point.
2015-07-21 20:29:07 +05:00
- If <b>Step-by-step generation</b> is checked, the result is created
step-by-step, i.e. it creates pipes between each pair of neighbor sections and
fuses them into a single shape.
\note If <b>Step-by-step generation</b> is checked, <b>With contact</b> and
<b>With correction</b> controls are disabled as corrections of bases are
not allowed in step-by-step mode.
2013-12-02 13:30:14 +06:00
2015-03-23 15:02:48 +05:00
<b>Generate groups</b> checkbox - if checked allows to create groups of
sub-shapes. For more details on groups creation please refer to
\ref create_groups_page "this description".
2014-01-27 18:30:47 +06:00
\n The \b Result of the operation will be a shell or a solid.
2013-12-02 13:30:14 +06:00
2015-07-21 20:29:07 +05:00
\n <b>TUI Commands:</b>
- <em>geompy.MakePipeWithDifferentSections(baseShape, locations, pathShape, withContact, withCorrection,
2015-03-23 15:02:48 +05:00
IsGenerateGroups=False)</em>
2013-12-02 13:30:14 +06:00
\n <b>Arguments:</b> Name + list of shapes (edges, planar wires, faces or shells) serving as base object +
list of locations (vertices) on the path corresponding specified list of the shapes +
1 shape (edge or wire) for definition of the path +
2015-03-23 15:02:48 +05:00
3 Boolean parameters (withContact, withCorrection, IsGenerateGroups).
2015-07-21 20:29:07 +05:00
- <em>geompy.MakePipeWithDifferentSectionsBySteps(baseShape, locations, pathShape,
IsGenerateGroups=False)</em>
\n <b>Arguments:</b> Name + list of shapes (edges, planar wires, faces or shells) serving as base object +
list of locations (vertices) on the path corresponding specified list of the shapes +
1 shape (edge or wire) for definition of the path +
Boolean parameter.
2013-12-02 13:30:14 +06:00
\n <b>Advanced options</b> \ref preview_anchor "Preview"
\image html pipe3.png
<b>Example:</b>
2014-01-27 18:30:47 +06:00
\image html pipe3_init.png "Base objects and Location vertices"
2013-12-02 13:30:14 +06:00
2014-01-27 18:30:47 +06:00
\image html pipe3_res.png "Extrusion of the profile shapes along the path shape"
2013-12-02 13:30:14 +06:00
2008-03-07 12:45:34 +05:00
Our <b>TUI Scripts</b> provide you with useful examples of creation of
\ref tui_creation_pipe "Complex Geometric Objects".
*/