Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[modules/smesh.git] / doc / salome / gui / SMESH / files / using_operations_on_groups.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>Using operations on groups</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 table.whs5 { x-cell-content-align:top; width:100%; border-spacing:0px; }\r
22 col.whs6 { width:32.6%; }\r
23 col.whs7 { width:67.4%; }\r
24 tr.whs8 { x-cell-content-align:top; }\r
25 td.whs9 { width:32.6%; padding-right:10px; padding-left:10px; border-right-style:none; border-left-style:none; border-top-style:none; border-bottom-style:none; }\r
26 img_whs10 { border:none; width:306px; height:253px; float:none; border-style:none; }\r
27 td.whs11 { width:67.4%; padding-right:10px; padding-left:10px; border-top-style:none; border-bottom-style:none; border-right-style:none; }\r
28 img_whs12 { border:none; width:134px; height:151px; border-style:none; }\r
29 img_whs13 { border:none; width:136px; height:151px; border-style:none; }\r
30 img_whs14 { border:none; width:133px; height:159px; border-style:none; }\r
31 p.whs15 { margin-left:0px; }\r
32 col.whs16 { width:32.796%; }\r
33 col.whs17 { width:67.204%; }\r
34 td.whs18 { width:32.796%; padding-right:10px; padding-left:10px; border-right-style:none; border-left-style:none; border-top-style:none; border-bottom-style:none; }\r
35 td.whs19 { width:67.204%; padding-right:10px; padding-left:10px; border-top-style:none; border-bottom-style:none; border-right-style:none; }\r
36 img_whs20 { border:none; width:141px; height:157px; border-style:none; }\r
37 col.whs21 { width:33.089%; }\r
38 col.whs22 { width:66.911%; }\r
39 td.whs23 { width:33.089%; padding-right:10px; padding-left:10px; border-right-style:none; border-left-style:none; border-top-style:none; border-bottom-style:none; }\r
40 td.whs24 { width:66.911%; padding-right:10px; padding-left:10px; border-top-style:none; border-bottom-style:none; border-right-style:none; }\r
41 img_whs25 { border:none; width:140px; height:146px; border-style:none; }\r
42 -->\r
43 </style><script type="text/javascript" language="JavaScript">\r
44 <!--\r
45 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))\r
46 {\r
47   var strNSS = "<style type='text/css'>";\r
48   strNSS += "p.whs15 {margin-left:1pt; }";\r
49   strNSS +="</style>";\r
50   document.write(strNSS);\r
51 }\r
52 //-->\r
53 </script>\r
54 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
55 <!--\r
56 function reDo() {\r
57   if (innerWidth != origWidth || innerHeight != origHeight)\r
58      location.reload();\r
59 }\r
60 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
61         origWidth = innerWidth;\r
62         origHeight = innerHeight;\r
63         onresize = reDo;\r
64 }\r
65 onerror = null; \r
66 //-->\r
67 </script>\r
68 <style type="text/css">\r
69 <!--\r
70 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
71 p.WebHelpNavBar { text-align:right; }\r
72 -->\r
73 </style><script type="text/javascript" language="javascript1.2" src="../whmsg.js"></script>\r
74 <script type="text/javascript" language="javascript" src="../whver.js"></script>\r
75 <script type="text/javascript" language="javascript1.2" src="../whproxy.js"></script>\r
76 <script type="text/javascript" language="javascript1.2" src="../whutils.js"></script>\r
77 <script type="text/javascript" language="javascript1.2" src="../whtopic.js"></script>\r
78 <script type="text/javascript" language="javascript1.2">\r
79 <!--\r
80 if (window.gbWhTopic)\r
81 {\r
82         if (window.setRelStartPage)\r
83         {\r
84         addTocInfo("MESH module\nGrouping elements\nUsing operations on groups");\r
85 addButton("show",BTN_IMG,"Show","","","","",0,0,"../whd_show0.gif","../whd_show2.gif","../whd_show1.gif");\r
86 addButton("hide",BTN_IMG,"Hide","","","","",0,0,"../whd_hide0.gif","../whd_hide2.gif","../whd_hide1.gif");\r
87 \r
88         }\r
89 \r
90 \r
91         if (window.setRelStartPage)\r
92         {\r
93         setRelStartPage("../index.htm");\r
94 \r
95                 autoSync(1);\r
96                 sendSyncInfo();\r
97                 sendAveInfoOut();\r
98         }\r
99 \r
100 }\r
101 else\r
102         if (window.gbIE4)\r
103                 document.location.reload();\r
104 //-->\r
105 </script>\r
106 </head>\r
107 <body><script type="text/javascript" language="javascript1.2">\r
108 <!--\r
109 if (window.writeIntopicBar)\r
110         writeIntopicBar(4);\r
111 //-->\r
112 </script>\r
113 <h1>Using operations on groups</h1>\r
114 \r
115 <p><span style="font-weight: bold;"><B><img src="../i_blue.jpg" x-maintain-ratio="TRUE" width="30px" height="30px" border="0" class="img_whs1"> </B></span>In MESH you can \r
116  perform some Boolean operations on groups, which belong to one and the \r
117  same mesh.</p>\r
118 \r
119 <p>&nbsp;</p>\r
120 \r
121 <ul type="disc" class="whs2">\r
122         \r
123         <li class=kadov-p><p class="whs3"><a href="#Union">Union</a> \r
124  </p></li>\r
125         \r
126         <li class=kadov-p><p class="whs3"><a href="#Intersection">Intersection</a></p></li>\r
127         \r
128         <li class=kadov-p><p class="whs3"><a href="#Cut">Cut</a></p></li>\r
129 </ul>\r
130 \r
131 <p>&nbsp;</p>\r
132 \r
133 <h3><a name=Union></a>Union of two groups</h3>\r
134 \r
135 <p>This operation allows to create a new group in such a way that all mesh \r
136  elements that are present in the initial groups will be added to the new \r
137  one.</p>\r
138 \r
139 <p>&nbsp;</p>\r
140 \r
141 <p class=TODO>To union two groups:</p>\r
142 \r
143 <p class=TODO>&nbsp;</p>\r
144 \r
145 <p class="whs4">1. In the <span style="font-weight: bold;"><B>Mesh \r
146  </B></span>menu select the <span style="font-weight: bold;"><B>Union Groups </B></span>item. \r
147  The following dialog box will appear:</p>\r
148 \r
149 <p class="whs4">&nbsp;</p>\r
150 \r
151 <table x-use-null-cells cellspacing="0" width="100%" class="whs5">\r
152 <col class="whs6">\r
153 <col class="whs7">\r
154 \r
155 <tr valign="top" class="whs8">\r
156 <td width="32.6%" class="whs9">\r
157 <p><img src="../pics/uniongroups.png" x-maintain-ratio="TRUE" width="306px" height="253px" border="0" class="img_whs10"></td>\r
158 <td width="67.4%" class="whs11">\r
159 <p><img src="../image133.gif" width="134px" height="151px" border="0" class="img_whs12"> &nbsp;&nbsp;<img src="../image134.gif" width="136px" height="151px" border="0" class="img_whs13"> &nbsp;&nbsp;&nbsp;&nbsp;<img src="../image135.gif" width="133px" height="159px" border="0" class="img_whs14"></p>\r
160 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Group1 \r
161  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Group2 \r
162  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Group12</p>\r
163 <p>&nbsp;</p>\r
164 <p>For example, we have two groups Group1 and Group2. </p>\r
165 <p>The result of their <span style="font-weight: bold;"><B>Union</B></span> will \r
166  be Group12 &nbsp;&nbsp;</td></tr>\r
167 </table>\r
168 \r
169 <p class="whs4">&nbsp;&nbsp;</p>\r
170 \r
171 <p>&nbsp;<span style="margin-left: 40px;">In \r
172  this dialog box you should specify the name</span><span style="margin-left: 40px; font-weight: bold;"> \r
173  <B></B></span><span style="margin-left: 40px;">of the resulting group and two \r
174  groups which will be united.</span></p>\r
175 \r
176 <p class="whs4">&nbsp;</p>\r
177 \r
178 <p class="whs4">2. Click the <span style="font-weight: bold;"><B>Ok \r
179  </B></span>or <span style="font-weight: bold;"><B>&nbsp;Apply \r
180  </B></span>button to confirm creation of the group. </p>\r
181 \r
182 <p>&nbsp;</p>\r
183 \r
184 <p class="whs15"><span style="font-weight: bold;"><B>See Also</B></span> \r
185  a sample TUI Script of a <a href="../grouping_elements.htm#bookmark2">Union \r
186  of two Groups</a> operation. &nbsp;</p>\r
187 \r
188 <p class="whs15">&nbsp;</p>\r
189 \r
190 <p class="whs15">&nbsp;</p>\r
191 \r
192 <p>&nbsp;</p>\r
193 \r
194 <h3><a name=Intersection></a>Intersection of two groups</h3>\r
195 \r
196 <p>This operation allows to create a new group in such a way that all mesh \r
197  elements that are present in both initial groups are added to the new \r
198  one.</p>\r
199 \r
200 <p>&nbsp;</p>\r
201 \r
202 <p class=TODO>To intersect two groups:</p>\r
203 \r
204 <p class=TODO>&nbsp;</p>\r
205 \r
206 <p class="whs4">1. In the <span style="font-weight: bold;"><B>Mesh \r
207  </B></span>menu select the <span style="font-weight: bold;"><B>Intersect Groups \r
208  </B></span>item. The following dialog box will appear:</p>\r
209 \r
210 <p class="whs4">&nbsp;</p>\r
211 \r
212 <table x-use-null-cells cellspacing="0" width="100%" class="whs5">\r
213 <col class="whs16">\r
214 <col class="whs17">\r
215 \r
216 <tr valign="top" class="whs8">\r
217 <td width="32.796%" class="whs18">\r
218 <p><img src="../pics/intersectgroups.png" x-maintain-ratio="TRUE" width="306px" height="253px" border="0" class="img_whs10"></td>\r
219 <td width="67.204%" class="whs19">\r
220 <p><img src="../image133.gif" width="134px" height="151px" border="0" class="img_whs12"> &nbsp;<img src="../image134.gif" width="136px" height="151px" border="0" class="img_whs13"><img src="../image136.gif" width="141px" height="157px" border="0" class="img_whs20"></p>\r
221 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Group1 \r
222  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Group2 \r
223  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Group12a</p>\r
224 <p>&nbsp;</p>\r
225 <p>For example, we have two groups Group1 and Group2. </p>\r
226 <p>The result of their <span style="font-weight: bold;"><B>Intersection</B></span> \r
227  will be Group12a &nbsp;&nbsp;</td></tr>\r
228 </table>\r
229 \r
230 <p>&nbsp;</p>\r
231 \r
232 <p class="whs15">In this dialog box you should specify the \r
233  name<span style="font-weight: bold;"> <B></B></span>of the resulting group and \r
234  two groups which will be intersected.</p>\r
235 \r
236 <p class="whs4">&nbsp;</p>\r
237 \r
238 <p class="whs4">2. Click the <span style="font-weight: bold;"><B>Ok \r
239  </B></span>or <span style="font-weight: bold;"><B>&nbsp;Apply \r
240  </B></span>button to confirm creation of the group. </p>\r
241 \r
242 <p>&nbsp;</p>\r
243 \r
244 <p>&nbsp;<span style="font-weight: bold;"><B>See \r
245  Also</B></span> a sample TUI Script of an <a href="../grouping_elements.htm#bookmark3">&nbsp;Intersection \r
246  of two Groups</a> operation. &nbsp;</p>\r
247 \r
248 <p>&nbsp;</p>\r
249 \r
250 <h3><a name=Cut></a>Cut of two groups</h3>\r
251 \r
252 <p>This operation allows to create a new group in such a way that all mesh \r
253  elements that are present in the main group but are absent in the tool \r
254  group are added to the new one.</p>\r
255 \r
256 <p>&nbsp;</p>\r
257 \r
258 <p class=TODO>To cut two groups:</p>\r
259 \r
260 <p class=TODO>&nbsp;</p>\r
261 \r
262 <p class="whs4">1. In the <span style="font-weight: bold;"><B>Mesh \r
263  </B></span>menu select the <span style="font-weight: bold;"><B>Cut Groups </B></span>item. \r
264  The following dialog box will appear:</p>\r
265 \r
266 <p class="whs4">&nbsp;</p>\r
267 \r
268 <table x-use-null-cells cellspacing="0" width="100%" class="whs5">\r
269 <col class="whs21">\r
270 <col class="whs22">\r
271 \r
272 <tr valign="top" class="whs8">\r
273 <td width="33.089%" class="whs23">\r
274 <p><img src="../pics/cutgroups.png" x-maintain-ratio="TRUE" width="306px" height="253px" border="0" class="img_whs10"></td>\r
275 <td width="66.911%" class="whs24">\r
276 <p><img src="../image133.gif" width="134px" height="151px" border="0" class="img_whs12"> &nbsp;&nbsp;<img src="../image134.gif" width="136px" height="151px" border="0" class="img_whs13"> &nbsp;<img src="../image137.gif" width="140px" height="146px" border="0" class="img_whs25"></p>\r
277 <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Group1 \r
278  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Group2 \r
279  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Group12b</p>\r
280 <p>&nbsp;</p>\r
281 <p>For example, we have two groups Group1 and Group2. </p>\r
282 <p>The result of their <span style="font-weight: bold;"><B>Cut</B></span> will \r
283  be Group12b &nbsp;&nbsp;</td></tr>\r
284 </table>\r
285 \r
286 <p>&nbsp;</p>\r
287 \r
288 <p class="whs4">In this dialog box you should specify the \r
289  name<span style="font-weight: bold;"> <B></B></span>of the resulting group and \r
290  two groups which will be cut.</p>\r
291 \r
292 <p class="whs4">&nbsp;</p>\r
293 \r
294 <p class="whs4">2. Click the <span style="font-weight: bold;"><B>Ok \r
295  </B></span>or <span style="font-weight: bold;"><B>&nbsp;Apply \r
296  </B></span>button to confirm creation of the group. &nbsp;</p>\r
297 \r
298 <p>&nbsp;</p>\r
299 \r
300 <p>&nbsp;&nbsp;<span style="font-weight: bold;"><B>See \r
301  Also</B></span> a sample TUI Script of a <a href="../grouping_elements.htm#bookmark3">&nbsp;Cut \r
302  of two Groups</a> operation. &nbsp;</p>\r
303 \r
304 <p>&nbsp;</p>\r
305 \r
306 <p>&nbsp;</p>\r
307 \r
308 <script type="text/javascript" language="javascript1.2">\r
309 <!--\r
310 if (window.writeIntopicBar)\r
311         writeIntopicBar(0);\r
312 //-->\r
313 </script>\r
314 </body>\r
315 </html>\r