Salome HOME
*** empty log message ***
[modules/smesh.git] / doc / salome / gui / SMESH / files / sewing_meshes.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>Sewing meshes</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 img_whs1 { border:none; width:30px; height:30px; float:none; border-style:none; }\r
18 ul.whs2 { list-style:disc; }\r
19 p.whs3 { font-weight:bold; }\r
20 p.whs4 { margin-left:40px; }\r
21 img_whs5 { border:none; width:332px; height:548px; border-style:none; float:right; }\r
22 img_whs6 { border:none; width:612px; height:225px; border-style:none; }\r
23 img_whs7 { border:none; width:581px; height:218px; border-style:none; float:left; }\r
24 img_whs8 { border:none; width:600px; height:227px; border-style:none; }\r
25 p.whs9 { margin-left:0px; }\r
26 img_whs10 { border:none; width:620px; height:228px; border-style:none; }\r
27 img_whs11 { border:none; width:304px; height:222px; border-style:none; }\r
28 -->\r
29 </style><script type="text/javascript" language="JavaScript">\r
30 <!--\r
31 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))\r
32 {\r
33   var strNSS = "<style type='text/css'>";\r
34   strNSS += "p.whs9 {margin-left:1pt; }";\r
35   strNSS +="</style>";\r
36   document.write(strNSS);\r
37 }\r
38 //-->\r
39 </script>\r
40 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
41 <!--\r
42 function reDo() {\r
43   if (innerWidth != origWidth || innerHeight != origHeight)\r
44      location.reload();\r
45 }\r
46 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
47         origWidth = innerWidth;\r
48         origHeight = innerHeight;\r
49         onresize = reDo;\r
50 }\r
51 onerror = null; \r
52 //-->\r
53 </script>\r
54 <style type="text/css">\r
55 <!--\r
56 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
57 -->\r
58 </style><script type="text/javascript" language="javascript1.2" src="../whmsg.js"></script>\r
59 <script type="text/javascript" language="javascript" src="../whver.js"></script>\r
60 <script type="text/javascript" language="javascript1.2" src="../whproxy.js"></script>\r
61 <script type="text/javascript" language="javascript1.2" src="../whutils.js"></script>\r
62 <script type="text/javascript" language="javascript1.2" src="../whtopic.js"></script>\r
63 </head>\r
64 <body><script type="text/javascript" language="javascript1.2">\r
65 <!--\r
66 if (window.gbWhTopic)\r
67 {\r
68         if (window.addTocInfo)\r
69         {\r
70         addTocInfo("MESH module\nModifying meshes\nTransforming meshes\nSewing meshes");\r
71 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");\r
72 \r
73         }\r
74         if (window.writeBtnStyle)\r
75                 writeBtnStyle();\r
76 \r
77         if (window.writeIntopicBar)\r
78                 writeIntopicBar(1);\r
79 \r
80         if (window.setRelStartPage)\r
81         {\r
82         setRelStartPage("../smesh.htm");\r
83 \r
84                 autoSync(1);\r
85                 sendSyncInfo();\r
86                 sendAveInfoOut();\r
87         }\r
88 }\r
89 else\r
90         if (window.gbIE4)\r
91                 document.location.reload();\r
92 //-->\r
93 </script>\r
94 <h1>Sewing meshes</h1>\r
95 \r
96 <p><img src="../i_blue.jpg" x-maintain-ratio="TRUE" width="30px" height="30px" border="0" class="img_whs1"> In SMESH you can sew elements of &nbsp;different \r
97  meshes. The current functionality allows you to sew:</p>\r
98 \r
99 <p>&nbsp;</p>\r
100 \r
101 <ul type="disc" class="whs2">\r
102         \r
103         <li class=kadov-p><p class="whs3"><a href="#free bord">Free \r
104  borders </a></p></li>\r
105         \r
106         <li class=kadov-p><p class="whs3"><a href="#conform">Conform \r
107  free borders</a></p></li>\r
108         \r
109         <li class=kadov-p><p class="whs3"><a href="#border to side">Border \r
110  to side</a></p></li>\r
111         \r
112         <li class=kadov-p><p class="whs3"><a href="#side elements">Side \r
113  elements</a></p></li>\r
114 </ul>\r
115 \r
116 <p class="whs3">&nbsp;</p>\r
117 \r
118 <p class=TODO>To sew elements of different meshes:</p>\r
119 \r
120 <p class=TODO>&nbsp;</p>\r
121 \r
122 <p class="whs4">1. From the <span style="font-weight: bold;"><B>Modification \r
123  </B></span>menu choose the <span style="font-weight: bold;"><B>Transformation \r
124  </B></span>item and &nbsp;from \r
125  its sub-menu select the <span style="font-weight: bold;"><B>Sewing </B></span>item. \r
126  </p>\r
127 \r
128 <p class="whs4">2. Check in the dialog box one of the radio \r
129  buttons corresponding to the type of sewing operation you would like to \r
130  perform. </p>\r
131 \r
132 <p class="whs4">3. Fill the other fields available in the \r
133  dialog box</p>\r
134 \r
135 <p class="whs4">4. Click the <span style="font-weight: bold;"><B>OK \r
136  </B></span><span>or </span><span style="font-weight: bold;"><B>Apply </B></span>button \r
137  to perform the operation of sewing. </p>\r
138 \r
139 <h3><a name="free bord"></a>Sew free borders<img src="../pics/sewing1.png" x-maintain-ratio="TRUE" width="332px" height="548px" align="right" border="0" class="img_whs5"></h3>\r
140 \r
141 <p>This functionality allows you to unite two free borders of a 2D mesh.</p>\r
142 \r
143 <p>&nbsp;</p>\r
144 \r
145 <p>For sewing free borders you should define three points on each border: \r
146  first, second and the last node: </p>\r
147 \r
148 <p>&nbsp;</p>\r
149 \r
150 <ul type="disc" class="whs2">\r
151         \r
152         <li class=kadov-p><p>&nbsp;the \r
153  first node specifies beginning of the border ;</p></li>\r
154         \r
155         <li class=kadov-p><p>&nbsp;the \r
156  second node specifies the part of the border which should be considered \r
157  (as far as the free border usually forms a closed contour);</p></li>\r
158         \r
159         <li class=kadov-p><p>&nbsp;the \r
160  last node specifies the end of the border.</p></li>\r
161 </ul>\r
162 \r
163 <p>&nbsp;</p>\r
164 \r
165 <p>You can select these nodes in the 3D viewer or define by its id.</p>\r
166 \r
167 <p>&nbsp;</p>\r
168 \r
169 <p>The first and the second nodes should belong to the same link of a face. \r
170  The second and the last nodes of a border can be the same. The first and \r
171  the last nodes of two borders can be the same. The corresponding end nodes \r
172  of two borders will be merged. Intermediate nodes of two borders will \r
173  be either merged or inserted into faces of the opposite border.</p>\r
174 \r
175 <p>&nbsp;</p>\r
176 \r
177 <p>The sewing algorithm is as follows:</p>\r
178 \r
179 <p>&nbsp;</p>\r
180 \r
181 <p class="whs4">1. The parameter (U) of each node within \r
182  a border is computed. So that the first node has U=0.0, the last node \r
183  has U=1.0, for the rest nodes 0.0 &lt; U &lt; 1.0;</p>\r
184 \r
185 <p class="whs4">2. Compare node parameters of the two borders. \r
186  If two nodes of the opposite borders have close parameters, they are merged, \r
187  i.e. a node of the first border is replaced in all elements by a node \r
188  of the second border. If a node has no node with a close parameter in \r
189  the opposite border, it is inserted into an edge of element of the opposite \r
190  border, an element is split. Two nodes are considered close enough to \r
191  merge, if difference of their parameters is less than one fifth of minimum \r
192  length of adjacent face edges on the borders.</p>\r
193 \r
194 <p>&nbsp;</p>\r
195 \r
196 <p class="whs4"><img src="../image22.jpg" width="612px" height="225px" border="0" class="img_whs6"></p>\r
197 \r
198 <p class="whs4">&nbsp;</p>\r
199 \r
200 <p>&nbsp;&nbsp;<span style="font-weight: bold;"><B>See \r
201  Also</B></span> a sample TUI Script of a <a href="../transforming_meshes.htm#bookmark4">Sew \r
202  Free Borders</a> operation. &nbsp;</p>\r
203 \r
204 <p>&nbsp;</p>\r
205 \r
206 <p class="whs4">&nbsp;</p>\r
207 \r
208 <h3><a name=conform></a>Sew conform free borders<img src="../pics/sewing2.png" x-maintain-ratio="TRUE" width="332px" height="548px" align="right" border="0" class="img_whs5"></h3>\r
209 \r
210 <p>This functionality can be used to unite two free borders of a 2D mesh. \r
211  </p>\r
212 \r
213 <p>&nbsp;</p>\r
214 \r
215 <p>The borders of meshes for sewing are defined as for &quot;Sew free borders&quot; \r
216  except that the second free border is not limited and can be defined by \r
217  the first and the second nodes only. The first nodes of two borders can \r
218  be the same.</p>\r
219 \r
220 <p>&nbsp;</p>\r
221 \r
222 <p>The algorithm is following: counting nodes starting at the first ones, \r
223  the n-th node of the first border is merged with the n-th node of the \r
224  other border, until the end of either of borders. Nodes of the first border \r
225  are replaced in all elements with corresponding nodes of the second border.</p>\r
226 \r
227 <p>For sewing conform free borders you should define three points on the \r
228  first border and two points on the second one. User can select these nodes \r
229  in 3D viewer or define node by its id.<img src="../image23.jpg" width="581px" height="218px" align="left" border="0" class="img_whs7"></p>\r
230 \r
231 <p class="whs3">&nbsp;</p>\r
232 \r
233 <p class="whs3">&nbsp;</p>\r
234 \r
235 <h3>&nbsp;</h3>\r
236 \r
237 <h3>&nbsp;</h3>\r
238 \r
239 <h3>&nbsp;</h3>\r
240 \r
241 <h3>&nbsp;</h3>\r
242 \r
243 <h3>&nbsp;</h3>\r
244 \r
245 <p>&nbsp;&nbsp;<span style="font-weight: bold;"><B>See \r
246  Also</B></span> a sample TUI Script of a <a href="../transforming_meshes.htm#bookmark5">Sew \r
247  Conform Free Borders</a> operation. &nbsp;</p>\r
248 \r
249 <h3>&nbsp;</h3>\r
250 \r
251 <h3>&nbsp;</h3>\r
252 \r
253 <h3><a name="border to side"></a>Sew border to side<img src="../pics/sewing3.png" x-maintain-ratio="TRUE" width="332px" height="548px" align="right" border="0" class="img_whs5"></h3>\r
254 \r
255 <p>&quot;Sew border to side&quot; is intended to sew a free border to a \r
256  mesh surface.</p>\r
257 \r
258 <p>The free border is defined as for &quot;Sewing of free borders&quot;. \r
259  The place where to sew the border is defined by two nodes, between which \r
260  the border faces are placed, so that the first border node is merged with \r
261  the first node on the side and the last node of the border is merged with \r
262  the second specified node on the side.</p>\r
263 \r
264 <p>&nbsp;</p>\r
265 \r
266 <p class="whs4">&nbsp;</p>\r
267 \r
268 <p>The algorithm is following.</p>\r
269 \r
270 <p>1. Find a sequence of linked nodes on the side such that the found links \r
271  to be most co-directed with the links of the free border.</p>\r
272 \r
273 <p>2. Sew two sequences of nodes using algorithm of &quot;Sewing of free \r
274  berders&quot;.</p>\r
275 \r
276 <p>For sewing border to side you should define three points on the border \r
277  and two points on the side. User can select these nodes in 3D viewer or \r
278  define node by its id.</p>\r
279 \r
280 <p><img src="../image30.jpg" width="600px" height="227px" border="0" class="img_whs8"></p>\r
281 \r
282 <p>&nbsp;&nbsp;<span style="font-weight: bold;"><B>See \r
283  Also</B></span> a sample TUI Script of a <a href="../transforming_meshes.htm#bookmark6">Sew \r
284  Border to Side</a> operation. &nbsp;</p>\r
285 \r
286 <p>&nbsp;</p>\r
287 \r
288 <h3>&nbsp;</h3>\r
289 \r
290 <h3><a name="side elements"></a>Sew side elements<img src="../pics/sewing4.png" x-maintain-ratio="TRUE" width="332px" height="548px" align="right" border="0" class="img_whs5"></h3>\r
291 \r
292 <p class="whs9">This operation is intended to unite two mesh \r
293  surfaces.</p>\r
294 \r
295 <p class="whs9">&nbsp;</p>\r
296 \r
297 <p>Surfaces may be defined by either 2d or 3d elements. The number of given \r
298  elements of the sides must be the same. The sets of given elements must \r
299  be topologically equal, i.e. each node of one element set must have a \r
300  corresponding node in the other element set and corresponding nodes must \r
301  be equally linked. If there are 3d elements in a set, only their free \r
302  faces must obey to that rule.</p>\r
303 \r
304 <p>Two corresponding nodes on each side must be specified. They must belong \r
305  to one element and must be located on an element set boundary.</p>\r
306 \r
307 <p>&nbsp;</p>\r
308 \r
309 <p>Sewing algorithm finds and merges the corresponding nodes starting from \r
310  the specified ones.</p>\r
311 \r
312 <p><img src="../image31.jpg" width="620px" height="228px" border="0" class="img_whs10"></p>\r
313 \r
314 <p class="whs4"><img src="../image32.jpg" width="304px" height="222px" border="0" class="img_whs11"></p>\r
315 \r
316 <p>For sewing side elements you should define elements for sewing and two \r
317  nodes for merging on the each side. User can select these elements and \r
318  nodes in 3D viewer or define them by its id.</p>\r
319 \r
320 <p>&nbsp;</p>\r
321 \r
322 <p><span style="font-weight: bold;"><B>See Also</B></span> a sample TUI Script \r
323  of a <a href="../transforming_meshes.htm#bookmark7">Sew Side Elements</a> \r
324  operation. &nbsp;</p>\r
325 \r
326 <p>&nbsp;</p>\r
327 \r
328 <p>&nbsp;</p>\r
329 \r
330 <script type="text/javascript" language="javascript1.2">\r
331 <!--\r
332 if (window.writeIntopicBar)\r
333         writeIntopicBar(0);\r
334 //-->\r
335 </script>\r
336 </body>\r
337 </html>\r