Salome HOME
f4bf96f79970d1a0deeb68fb74ef5874d1ae29c6
[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 table.whs16 { x-cell-content-align:top; width:100%; border-spacing:0; }\r
33 col.whs17 { width:32.796%; }\r
34 col.whs18 { width:67.204%; }\r
35 td.whs19 { padding-right:10px; padding-left:10px; border-right-style:none; border-left-style:none; border-top-style:none; border-bottom-style:none; }\r
36 img_whs20 { border:none; width:306px; height:253px; float:none; border-style:none; }\r
37 td.whs21 { padding-right:10px; padding-left:10px; border-top-style:none; border-bottom-style:none; border-right-style:none; }\r
38 img_whs22 { border:none; width:141px; height:157px; }\r
39 col.whs23 { width:33.089%; }\r
40 col.whs24 { width:66.911%; }\r
41 img_whs25 { border:none; width:140px; height:146px; }\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 -->\r
72 </style><script type="text/javascript" language="javascript1.2" src="../whmsg.js"></script>\r
73 <script type="text/javascript" language="javascript" src="../whver.js"></script>\r
74 <script type="text/javascript" language="javascript1.2" src="../whproxy.js"></script>\r
75 <script type="text/javascript" language="javascript1.2" src="../whutils.js"></script>\r
76 <script type="text/javascript" language="javascript1.2" src="../whtopic.js"></script>\r
77 </head>\r
78 <body><script type="text/javascript" language="javascript1.2">\r
79 <!--\r
80 if (window.gbWhTopic)\r
81 {\r
82         if (window.addTocInfo)\r
83         {\r
84         addTocInfo("MESH module\nGrouping elements\nUsing operations on groups");\r
85 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");\r
86 \r
87         }\r
88         if (window.writeBtnStyle)\r
89                 writeBtnStyle();\r
90 \r
91         if (window.writeIntopicBar)\r
92                 writeIntopicBar(1);\r
93 \r
94         if (window.setRelStartPage)\r
95         {\r
96         setRelStartPage("../smesh.htm");\r
97 \r
98                 autoSync(1);\r
99                 sendSyncInfo();\r
100                 sendAveInfoOut();\r
101         }\r
102 }\r
103 else\r
104         if (window.gbIE4)\r
105                 document.location.reload();\r
106 //-->\r
107 </script>\r
108 <h1>Using operations on groups</h1>\r
109 \r
110 <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
111  perform &nbsp;Boolean \r
112  operations on groups such as:</p>\r
113 \r
114 <p>&nbsp;</p>\r
115 \r
116 <ul type="disc" class="whs2">\r
117         \r
118         <li class=kadov-p><p class="whs3"><a href="#Union">Union</a> \r
119  </p></li>\r
120         \r
121         <li class=kadov-p><p class="whs3"><a href="#Intersection">Intersection</a></p></li>\r
122         \r
123         <li class=kadov-p><p class="whs3"><a href="#Cut">Cut</a></p></li>\r
124 </ul>\r
125 \r
126 <p>&nbsp;</p>\r
127 \r
128 <h3><a name=Union></a>Union of two groups</h3>\r
129 \r
130 <p>This operation allows to create a new group in such a way that all mesh \r
131  elements that are present in the initial groups will be added to the new \r
132  one.</p>\r
133 \r
134 <p>&nbsp;</p>\r
135 \r
136 <p class=TODO>To union two groups:</p>\r
137 \r
138 <p class=TODO>&nbsp;</p>\r
139 \r
140 <p class="whs4">1. In the <span style="font-weight: bold;"><B>Mesh \r
141  </B></span>menu select the <span style="font-weight: bold;"><B>Union Groups </B></span>item. \r
142  The following dialog box will appear:</p>\r
143 \r
144 <p class="whs4">&nbsp;</p>\r
145 \r
146 <table x-use-null-cells cellspacing="0" width="100%" class="whs5">\r
147 <col class="whs6">\r
148 <col class="whs7">\r
149 \r
150 <tr valign="top" class="whs8">\r
151 <td width="32.6%" class="whs9">\r
152 <p><img src="../pics/uniongroups.png" x-maintain-ratio="TRUE" width="306px" height="253px" border="0" class="img_whs10"></td>\r
153 <td width="67.4%" class="whs11">\r
154 <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
155 <p>For example, we have two groups Group1 and Group2. </p>\r
156 <p>The result of their Union will be Group12 &nbsp;&nbsp;</td></tr>\r
157 </table>\r
158 \r
159 <p class="whs4">&nbsp;&nbsp;</p>\r
160 \r
161 <p>&nbsp;<span style="margin-left: 40px;">In \r
162  this dialog box you should specify the name</span><span style="margin-left: 40px; font-weight: bold;"> \r
163  <B></B></span><span style="margin-left: 40px;">of the resulting group and two \r
164  groups which will be united.</span></p>\r
165 \r
166 <p class="whs4">&nbsp;</p>\r
167 \r
168 <p class="whs4">2. Click the <span style="font-weight: bold;"><B>Ok \r
169  </B></span>or <span style="font-weight: bold;"><B>&nbsp;Apply \r
170  </B></span>button to confirm creation of the group. </p>\r
171 \r
172 <p>&nbsp;</p>\r
173 \r
174 <p class="whs15"><span style="font-weight: bold;"><B>See Also</B></span> \r
175  a sample TUI Script of a <a href="../grouping_elements.htm#bookmark2">Union \r
176  of two Groups</a> operation. &nbsp;</p>\r
177 \r
178 <p class="whs15">&nbsp;</p>\r
179 \r
180 <p class="whs15">&nbsp;</p>\r
181 \r
182 <p>&nbsp;</p>\r
183 \r
184 <h3><a name=Intersection></a>Intersection of two groups</h3>\r
185 \r
186 <p>This operation allows to create a new group in such a way that all mesh \r
187  elements that are present in both initial groups are added to the new \r
188  one.</p>\r
189 \r
190 <p>&nbsp;</p>\r
191 \r
192 <p class=TODO>To intersect two groups:</p>\r
193 \r
194 <p class=TODO>&nbsp;</p>\r
195 \r
196 <p class="whs4">1. In the <span style="font-weight: bold;"><B>Mesh \r
197  </B></span>menu select the <span style="font-weight: bold;"><B>Intersect Groups \r
198  </B></span>item. The following dialog box will appear:</p>\r
199 \r
200 <p class="whs4">&nbsp;</p>\r
201 \r
202 <table x-use-null-cells cellspacing="0" width="100%" class="whs16">\r
203 <col class="whs17">\r
204 <col class="whs18">\r
205 \r
206 <tr valign=top>\r
207 <td width="32.796%" class="whs19">\r
208 <p><img src="../pics/intersectgroups.png" x-maintain-ratio="TRUE" width="306px" height="253px" border="0" class="img_whs20"></td>\r
209 <td width="67.204%" class="whs21">\r
210 <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_whs22"></p>\r
211 <p>For example, we have two groups Group1 and Group2. </p>\r
212 <p>The result of their Union will be Group12a &nbsp;&nbsp;</td></tr>\r
213 </table>\r
214 \r
215 <p>&nbsp;</p>\r
216 \r
217 <p class="whs15">In this dialog box you should specify the \r
218  name<span style="font-weight: bold;"> <B></B></span>of the resulting group and \r
219  two groups which will be intersected.</p>\r
220 \r
221 <p class="whs4">&nbsp;</p>\r
222 \r
223 <p class="whs4">2. Click the <span style="font-weight: bold;"><B>Ok \r
224  </B></span>or <span style="font-weight: bold;"><B>&nbsp;Apply \r
225  </B></span>button to confirm creation of the group. </p>\r
226 \r
227 <p>&nbsp;</p>\r
228 \r
229 <p>&nbsp;<span style="font-weight: bold;"><B>See \r
230  Also</B></span> a sample TUI Script of an <a href="../grouping_elements.htm#bookmark3">&nbsp;Intersection \r
231  of two Groups</a> operation. &nbsp;</p>\r
232 \r
233 <p>&nbsp;</p>\r
234 \r
235 <h3><a name=Cut></a>Cut of two groups</h3>\r
236 \r
237 <p>This operation allows to create a new group in such a way that all mesh \r
238  elements that are present in the main group but are absent in the tool \r
239  group are added to the new one.</p>\r
240 \r
241 <p>&nbsp;</p>\r
242 \r
243 <p class=TODO>To cut two groups:</p>\r
244 \r
245 <p class=TODO>&nbsp;</p>\r
246 \r
247 <p class="whs4">1. In the <span style="font-weight: bold;"><B>Mesh \r
248  </B></span>menu select the <span style="font-weight: bold;"><B>Cut Groups </B></span>item. \r
249  The following dialog box will appear:</p>\r
250 \r
251 <p class="whs4">&nbsp;</p>\r
252 \r
253 <table x-use-null-cells cellspacing="0" width="100%" class="whs16">\r
254 <col class="whs23">\r
255 <col class="whs24">\r
256 \r
257 <tr valign=top>\r
258 <td width="33.089%" class="whs19">\r
259 <p><img src="../pics/cutgroups.png" x-maintain-ratio="TRUE" width="306px" height="253px" border="0" class="img_whs20"></td>\r
260 <td width="66.911%" class="whs21">\r
261 <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
262 <p>For example, we have two groups Group1 and Group2. </p>\r
263 <p>The result of their Union will be Group12b &nbsp;&nbsp;</td></tr>\r
264 </table>\r
265 \r
266 <p>&nbsp;</p>\r
267 \r
268 <p class="whs4">In this dialog box you should specify the \r
269  name<span style="font-weight: bold;"> <B></B></span>of the resulting group and \r
270  two groups which will be cut.</p>\r
271 \r
272 <p class="whs4">&nbsp;</p>\r
273 \r
274 <p class="whs4">2. Click the <span style="font-weight: bold;"><B>Ok \r
275  </B></span>or <span style="font-weight: bold;"><B>&nbsp;Apply \r
276  </B></span>button to confirm creation of the group. &nbsp;</p>\r
277 \r
278 <p>&nbsp;</p>\r
279 \r
280 <p>&nbsp;&nbsp;<span style="font-weight: bold;"><B>See \r
281  Also</B></span> a sample TUI Script of a <a href="../grouping_elements.htm#bookmark3">&nbsp;Cut \r
282  of two Groups</a> operation. &nbsp;</p>\r
283 \r
284 <p>&nbsp;</p>\r
285 \r
286 <p>&nbsp;</p>\r
287 \r
288 <script type="text/javascript" language="javascript1.2">\r
289 <!--\r
290 if (window.writeIntopicBar)\r
291         writeIntopicBar(0);\r
292 //-->\r
293 </script>\r
294 </body>\r
295 </html>\r