Salome HOME
b92ec65465b88afa9987d57acc92c4f7d239b57b
[modules/smesh.git] / doc / salome / gui / SMESH / extrusion_along_a_path.htm
1 <!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">\r
2 \r
3 <html>\r
4 \r
5 <head>\r
6 <title>Extrusion along a path</title>\r
7 <meta http-equiv="content-type" content="text/html; charset=windows-1252">\r
8 <meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.com">\r
9 <link rel="stylesheet" href="default_ns.css"><script type="text/javascript" language="JavaScript" title="WebHelpSplitCss">\r
10 <!--\r
11 if (navigator.appName !="Netscape")\r
12 {   document.write("<link rel='stylesheet' href='default.css'>");}\r
13 //-->\r
14 </script>\r
15 <style type="text/css">\r
16 <!--\r
17 table.whs1 { x-cell-content-align:top; width:100%; border-spacing:0px; }\r
18 col.whs2 { width:50%; }\r
19 tr.whs3 { x-cell-content-align:top; }\r
20 td.whs4 { width:50%; padding-right:10px; padding-left:10px; border-right-style:none; border-left-style:none; border-top-style:none; border-bottom-style:none; }\r
21 img_whs5 { border:none; width:335px; height:323px; border-style:none; }\r
22 td.whs6 { width:50%; padding-right:10px; padding-left:10px; border-top-style:none; border-bottom-style:none; border-right-style:none; }\r
23 img_whs7 { border:none; width:350px; height:323px; border-style:none; }\r
24 p.whs8 { margin-left:40px; }\r
25 img_whs9 { border:none; width:27px; height:24px; border-style:none; }\r
26 img_whs10 { border:none; width:434px; height:541px; float:none; border-style:none; }\r
27 ul.whs11 { list-style:disc; }\r
28 p.whs12 { margin-left:84px; }\r
29 img_whs13 { border:none; width:26px; height:25px; border-style:none; }\r
30 img_whs14 { border:none; width:29px; height:28px; border-style:none; }\r
31 -->\r
32 </style><script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
33 <!--\r
34 function reDo() {\r
35   if (innerWidth != origWidth || innerHeight != origHeight)\r
36      location.reload();\r
37 }\r
38 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
39         origWidth = innerWidth;\r
40         origHeight = innerHeight;\r
41         onresize = reDo;\r
42 }\r
43 onerror = null; \r
44 //-->\r
45 </script>\r
46 <style type="text/css">\r
47 <!--\r
48 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
49 -->\r
50 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>\r
51 <script type="text/javascript" language="javascript" src="whver.js"></script>\r
52 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>\r
53 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>\r
54 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>\r
55 </head>\r
56 <body><script type="text/javascript" language="javascript1.2">\r
57 <!--\r
58 if (window.gbWhTopic)\r
59 {\r
60         if (window.addTocInfo)\r
61         {\r
62         addTocInfo("MESH module\nModifying meshes\nExtrusion along a path");\r
63 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");\r
64 \r
65         }\r
66         if (window.writeBtnStyle)\r
67                 writeBtnStyle();\r
68 \r
69         if (window.writeIntopicBar)\r
70                 writeIntopicBar(1);\r
71 \r
72         if (window.setRelStartPage)\r
73         {\r
74         setRelStartPage("smesh.htm");\r
75 \r
76                 autoSync(1);\r
77                 sendSyncInfo();\r
78                 sendAveInfoOut();\r
79         }\r
80 }\r
81 else\r
82         if (window.gbIE4)\r
83                 document.location.reload();\r
84 //-->\r
85 </script>\r
86 <h1>Extrusion along a path</h1>\r
87 \r
88 <p>In principle, Extrusion along a path works in the same way as Extrusion, \r
89  the main difference is that we define not a vector, but a path of extrusion \r
90  which must be a meshed edge or wire. To get an idea of how this algorithm \r
91  works, let's see the left image, where we have a 1D circle edge and &nbsp;a \r
92  2D hexagon to be extruded along this path (in the picture they are angular \r
93  because we show the wireframe of the mesh). And now let's see the right \r
94  image, showing the result of the operation. &nbsp;</p>\r
95 \r
96 <p>&nbsp;</p>\r
97 \r
98 <table x-use-null-cells cellspacing="0" width="100%" class="whs1">\r
99 <col class="whs2">\r
100 <col class="whs2">\r
101 \r
102 <tr valign="top" class="whs3">\r
103 <td width="50%" class="whs4">\r
104 <p><img src="image102.gif" width="335px" height="323px" border="0" class="img_whs5"></td>\r
105 <td width="50%" class="whs6">\r
106 <p><img src="image104.gif" width="350px" height="323px" border="0" class="img_whs7"></td></tr>\r
107 </table>\r
108 \r
109 <p>&nbsp;</p>\r
110 \r
111 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>\r
112 \r
113 <p>&nbsp;</p>\r
114 \r
115 <p class=TODO>To use Extrusion along a path:</p>\r
116 \r
117 <p class="whs8">1. From the <span style="font-weight: bold;"><B>Modification \r
118  </B></span>menu choose the <span style="font-weight: bold;"><B>Extrusion along \r
119  a path </B></span>item or click <img src="image101.gif" width="27px" height="24px" border="0" class="img_whs9"> button in the toolbar. The \r
120  following dialog box will appear:</p>\r
121 \r
122 <p class="whs8">&nbsp;</p>\r
123 \r
124 <p class=TODO\r
125         style="margin-left: 80px;"><img src="pics/a-extusionalongapath2.png" x-maintain-ratio="TRUE" width="434px" height="541px" border="0" class="img_whs10"></p>\r
126 \r
127 <p class="whs8">&nbsp;</p>\r
128 \r
129 <p class="whs8">2. In the dialog box you should &nbsp;</p>\r
130 \r
131 <ul type="disc" class="whs11">\r
132         \r
133         <li class=kadov-p><p class="whs12">select the type of \r
134  elements which will be extruded (1D or 2D),</p></li>\r
135         \r
136         <li class=kadov-p><p class="whs12">specify the IDs of \r
137  the elements which will be extruded by selecting them in the 3D viewer \r
138  or <span style="font-weight: bold;"><B>Select the whole mesh, submesh or \r
139  grou</B></span>p,</p></li>\r
140         \r
141         <li class=kadov-p><p class="whs12">specify the path along \r
142  which the elements will be extruded, for this you should specify the <span \r
143  style="font-weight: bold;"><B>Mesh</B></span>, the <span style="font-weight: bold;"><B>Shape</B></span>, \r
144  and the <span style="font-weight: bold;"><B>Start point</B></span> for the extrusion. \r
145  </p></li>\r
146 </ul>\r
147 \r
148 <p class="whs8">&nbsp;</p>\r
149 \r
150 <p class="whs8">3. There are two optional parameters, which \r
151  can be very useful.</p>\r
152 \r
153 <ul type="disc" class="whs11">\r
154         \r
155         <li class=kadov-p><p class="whs12">If the path of extrusion \r
156  is curvilinear, at each iteration the extruded shape is rotated to keep \r
157  its initial angularity to the curve. By default, the <span style="font-weight: bold;"><B>Base \r
158  point</B></span> around which the shape is rotated is the mass center of the \r
159  shape, however, you can specify any point as the <span style="font-weight: bold;"><B>Base \r
160  Point</B></span> and the shape will be rotated with respect to this point.</p></li>\r
161         \r
162         <li class=kadov-p><p class="whs12">The shape can also \r
163  be rotated around the path to get the resulting mesh in a helical fashion. \r
164  At the picture above we see both &quot;oblique-angled&quot; and &quot;right-angled&quot; \r
165  mesh elements because <span style="font-weight: bold;"><B>Rotation Angles</B></span> \r
166  have not been set for all iterations. You set the values of the angles \r
167  at the right and add them to the list of angles at the left by pressing \r
168  the <img src="image105.gif" width="26px" height="25px" border="0" class="img_whs13"> button and remove the values from the list by pressing \r
169  the <img src="image106.gif" width="29px" height="28px" border="0" class="img_whs14"> button. </p></li>\r
170 </ul>\r
171 \r
172 <p class="whs8">4. Click the <span style="font-weight: bold;"><B>Apply \r
173  </B></span>or <span style="font-weight: bold;"><B>OK </B></span>button.</p>\r
174 \r
175 <p class="whs8">&nbsp;</p>\r
176 \r
177 <p>&nbsp;<span style="font-weight: bold;"><B>See \r
178  Also</B></span> a sample TUI Script of an <a href="modifying_meshes.htm#bookmark10">Extrusion \r
179  along a Path</a> operation. &nbsp;</p>\r
180 \r
181 <p>&nbsp;</p>\r
182 \r
183 <p>&nbsp;</p>\r
184 \r
185 <script type="text/javascript" language="javascript1.2">\r
186 <!--\r
187 if (window.writeIntopicBar)\r
188         writeIntopicBar(0);\r
189 //-->\r
190 </script>\r
191 </body>\r
192 </html>\r