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