Salome HOME
Merge remote branch 'origin/akl/22379'
[modules/geom.git] / doc / salome / gui / GEOM / input / creating_extrusion_alongpath.doc
1 /*!
2
3 \page create_extrusion_alongpath_page Pipe Construction
4
5 To generate a \b Pipe in the <b>Main Menu</b> select <b>New Entity - > Generation  - > Extrusion along a path</b>
6
7 \n Firstly, to create an extruded \b Pipe shape, you can define the <b>Base
8 Object</b> (vertex, edge, planar wire, face or shell), which will be extruded
9 and the <b>Path Object</b> (edge or wire) along which the <b>Base 
10 Object</b> will be extruded.<br>
11 It is possible to select in GUI several Base Objects to make several pipes (using Shift button).
12 \n In this mode the default pipe generation algorithm is used. The pipe
13 is created so that the <b>angle between the normal vector</b> to
14 the base shape <b>and the tangent to the path</b> wire remains constant at any point of the
15 given path.
16 \n <b>Select unpublished edges</b> checkbox - if checked, allows to select an edge of any other shape as the path object. 
17 \n The \b Result of the operation will be a GEOM_Object (edge, face, shell,
18 solid or compsolid).
19
20 \n <b>TUI Command:</b> <em>geompy.MakePipe(baseShape, pathShape)</em>
21 \n <b>Arguments:</b> Name + 1 shape (vertex, edge, planar wire, face or
22 shell) serving as base object + 1 shape (edge or wire) for
23 definition of the path.
24 \n <b>Advanced options</b> \ref preview_anchor "Preview"
25
26 \image html pipe.png
27
28 <b>Example:</b>
29
30 \image html pipe_wire_edgesn.png "Extrusion of a wire"
31
32 \n Secondly, you can define the <b>Base
33 Object</b> (edge, planar wire or face), which will be extruded, 
34 the <b>Path Object</b> (edge or wire) along which the <b>Base 
35 Object</b> will be extruded and the <b>BiNormal Vector</b> (edge or
36 wire).
37
38 \n In contrast to the default mode, in this mode the pipe is generated
39 to preserve the constant <b>angle between the normal vector</b> to the base
40 shape <b>and the BiNormal vector</b> given as the third argument.
41 \n <b>Select unpublished edges</b> checkbox - if checked, allows to select an edge of any other shape as the path object. 
42 \n The \b Result of the operation will be a GEOM_Object (edge, face, shell,
43 solid or compsolid).
44
45 \n <b>TUI Command:</b> <em>geompy.MakePipeBiNormalAlongVector(baseShape, pathShape, binormalShape)</em>
46 \n <b>Arguments:</b> Name + 1 shape (edge, planar wire or face) 
47 serving as base object + 1 shape (edge or wire) for
48 definition of the path + 1 shape (edge or wire) to set a fixed 
49 BiNormal direction to perform the extrusion.
50
51 \image html pipe2.png
52
53 <b>Example:</b>
54
55 \image html pipebinormalsn.png "Extrusion of a face with BiNormal parameter"
56
57 \n Thirdly, it is possible to additionally select profiles of the pipe object to be built. For this, you can define the following parameters:
58 - <b>Base Object</b> or a list of objects (edges, planar wires, faces or shells), which will be extruded;
59 - <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>.
60 - <b>Path Object</b> (edge or wire), along which the <b>Base Object</b> will be extruded.
61
62 Additional controls:
63 - If <b>With contact</b> is checked, the section is translated in contact with the spine.
64 - If <b>With correction</b> is checked, the section is rotated to be orthogonal to the spine
65 tangent in the corresponding point.
66
67 \n The \b Result of the operation will be a shell or a solid.
68
69 \n <b>TUI Command:</b> <em>geompy.MakePipeWithDifferentSections(baseShape, locations, pathShape, withContact, withCorrection)</em>
70 \n <b>Arguments:</b> Name + list of shapes (edges, planar wires, faces or shells) serving as base object + 
71 list of locations (vertices) on the path corresponding specified list of the shapes + 
72 1 shape (edge or wire) for definition of the path + 
73 2 Boolean parameters (withContact, withCorrection).
74 \n <b>Advanced options</b> \ref preview_anchor "Preview"
75
76 \image html pipe3.png
77
78 <b>Example:</b>
79
80 \image html pipe3_init.png "Base objects and Location vertices"
81
82 \image html pipe3_res.png "Extrusion of the profile shapes along the path shape"
83
84 Our <b>TUI Scripts</b> provide you with useful examples of creation of
85 \ref tui_creation_pipe "Complex Geometric Objects".
86
87 */