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