Salome HOME
PAL12557: Documentation for scripts is not up to date.
[modules/geom.git] / doc / salome / gui / GEOM / explode.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>Explode</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 { width:20px; height:20px; border-style:none; }\r
18 p.whs2 { margin-left:0px; }\r
19 p.whs3 { font-family:'Times New Roman' , serif; font-size:12pt; font-weight:normal; }\r
20 p.whs4 { font-family:'Times New Roman' , serif; font-size:14pt; }\r
21 p.whs5 { font-size:12pt; }\r
22 ul.whs6 { list-style:disc; }\r
23 p.whs7 { font-size:12pt; font-style:italic; }\r
24 p.whs8 { font-size:12pt; font-style:normal; }\r
25 p.whs9 { font-size:12pt; margin-left:40px; }\r
26 img_whs10 { border:none; width:312px; height:283px; float:none; border-style:none; }\r
27 -->\r
28 </style><script type="text/javascript" language="JavaScript">\r
29 <!--\r
30 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))\r
31 {\r
32   var strNSS = "<style type='text/css'>";\r
33   strNSS += "p.whs2 {margin-left:1pt; }";\r
34   strNSS +="</style>";\r
35   document.write(strNSS);\r
36 }\r
37 //-->\r
38 </script>\r
39 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">\r
40 <!--\r
41 function reDo() {\r
42   if (innerWidth != origWidth || innerHeight != origHeight)\r
43      location.reload();\r
44 }\r
45 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {\r
46         origWidth = innerWidth;\r
47         origHeight = innerHeight;\r
48         onresize = reDo;\r
49 }\r
50 onerror = null; \r
51 //-->\r
52 </script>\r
53 <style type="text/css">\r
54 <!--\r
55 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }\r
56 p.WebHelpNavBar { text-align:right; }\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 <script type="text/javascript" language="javascript1.2">\r
64 <!--\r
65 if (window.gbWhTopic)\r
66 {\r
67         if (window.setRelStartPage)\r
68         {\r
69         addTocInfo("Geometry module\nCreating geometrical objects\nCreating Advanced Geometrical Objects\nExplode");\r
70 addButton("show",BTN_IMG,"Show","","","","",0,0,"whd_show0.gif","whd_show2.gif","whd_show1.gif");\r
71 addButton("hide",BTN_IMG,"Hide","","","","",0,0,"whd_hide0.gif","whd_hide2.gif","whd_hide1.gif");\r
72 \r
73         }\r
74 \r
75 \r
76         if (window.setRelStartPage)\r
77         {\r
78         setRelStartPage("index.htm");\r
79 \r
80                 autoSync(1);\r
81                 sendSyncInfo();\r
82                 sendAveInfoOut();\r
83         }\r
84 \r
85 }\r
86 else\r
87         if (window.gbIE4)\r
88                 document.location.reload();\r
89 //-->\r
90 </script>\r
91 </head>\r
92 <body><script type="text/javascript" language="javascript1.2">\r
93 <!--\r
94 if (window.writeIntopicBar)\r
95         writeIntopicBar(4);\r
96 //-->\r
97 </script>\r
98 <h1><b style="font-weight: bold;"><span style="font-size: 14pt;"><font size=4 style="font-size:14pt;"><img src="salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image13.gif" width="20px" height="20px" border="0" class="img_whs1"> &nbsp;</font></span></b>Explode</h1>\r
99 \r
100 <p class="whs2">To<span style="font-weight: bold;"><B> Explode</B></span> \r
101  an object into subshapes, in the main menu select <span style="font-weight: bold;"><B>New \r
102  Entity &gt; Explode</B></span>.</p>\r
103 \r
104 <p class="whs3">&nbsp;</p>\r
105 \r
106 <p class="whs4"><span \r
107  style="font-size: 12pt;"><font size=3 style="font-size:12pt;">To create a list of &nbsp;subshapes \r
108  (vertices, edges, wires etc.) of the given shape using the </font></span><span \r
109  style="font-size: 12pt; font-weight: bold;"><font size=3 style="font-size:12pt;"><B>Explode</B></font></span><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"> \r
110  operation, you need to define the </font></span><span style="font-size: 12pt; font-weight: bold;"><font size=3 style="font-size:12pt;"><B>Main \r
111  Object,</B></font></span><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"> which will be exploded and \r
112  the </font></span><span style="font-size: 12pt; font-weight: bold;"><font size=3 style="font-size:12pt;"><B>Type of Subshapes</B></font></span><span \r
113  style="font-size: 12pt;"><font size=3 style="font-size:12pt;"> you wish to obtain from it</font></span><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">.</font></span></p>\r
114 \r
115 <p class="whs5"><b style="font-weight: bold;"><span style="font-weight: normal;">The</span> \r
116  Result <span style="font-weight: normal;">of the operation will be a List</span> \r
117  of</b> GEOM_Objects (edges, faces, solids or compsolids).</p>\r
118 \r
119 <p class="whs5">&nbsp;</p>\r
120 \r
121 <p class="whs5"><b style="font-weight: bold;"><span style="font-weight: normal;">Using</span> \r
122  TUI Commands<span style="font-weight: normal;"> you can perform this operation \r
123  in a variety of ways:</span> </b></p>\r
124 \r
125 <ul type="disc" class="whs6">\r
126         \r
127         <li class=kadov-p><p class="whs5"><span style="font-style: italic;"><I>geompy.SubShapeAll(Shape, \r
128  Type)</I></span> explodes a Shape on subshapes of a given Type and returns \r
129  a <span style="font-weight: bold;"><B>List</B></span> of sub-shapes. </p></li>\r
130         \r
131         <li class=kadov-p><p class="whs5"><span style="font-style: italic;"><I>geompy.SubShapeAllIDs(Shape, \r
132  Type)</I></span> &nbsp;explodes \r
133  a Shape on subshapes of a given Type and returns a List of IDs of sub-shapes. \r
134  </p></li>\r
135         \r
136         <li class=kadov-p><p class="whs5"><span style="font-style: italic;"><I>geompy.SubShapeAllSorted(Shape, \r
137  Type)</I></span> &nbsp;explodes \r
138  a shape on subshapes of a given type and <span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">sorts \r
139  them by coordinates of their gravity centers, returning &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a \r
140  list of sub-shapes. </font></span></p></li>\r
141         \r
142         <li class=kadov-p><p class="whs7">geompy.SubShapeAllSortedIDs(Shape, \r
143  Type) &nbsp;<span style="font-style: normal;">explodes \r
144  a shape on subshapes of a given type</span> <span style="font-style: normal;">and \r
145  sorts them by coordinates of their gravity centers, &nbsp;returning \r
146  a List of IDs of sub-shapes.</span></p></li>\r
147         \r
148         <li class=kadov-p><p class="whs7"><span \r
149  style="font-style: normal;">g</span>eompy.SubShape(Shape, Type, ListOfInd) \r
150  &nbsp;<span style="font-style: normal;">allows \r
151  to obtain a compound of sub-shapes of &nbsp;the \r
152  Shape, &nbsp;selected \r
153  by they indices in a list of all sub-shapes of the given Type. Each index \r
154  is in the range [1, Nb_Sub-Shapes_Of_Given_Type].</span> </p></li>\r
155         \r
156         <li class=kadov-p><p class="whs8"><span \r
157  style="font-size: 12pt; font-style: normal;"><font size=3 style="font-size:12pt;">geompy.SubShapeSorted(Shape, \r
158  Type, ListOfInd) allows to obtain a compound of sub-shapes of the Shape, \r
159  selected by they indices in sorted list of all sub-shapes of the given \r
160  Type. Each index is in the range [1, Nb_Sub-Shapes_Of_Given_Type] </font></span></p></li>\r
161 </ul>\r
162 \r
163 <p class="whs5">&nbsp;</p>\r
164 \r
165 <p class="whs5"><b style="font-weight: bold;">Arguments:</b> \r
166  1 SHAPE + 1 type of SubShape.</p>\r
167 \r
168 <p class="whs5">&nbsp;</p>\r
169 \r
170 <p class="whs5">&nbsp;</p>\r
171 \r
172 <p class="whs9"><img src="pics/neo-obj1.png" x-maintain-ratio="TRUE" width="312px" height="283px" border="0" class="img_whs10"></p>\r
173 \r
174 <p class="whs4">&nbsp;</p>\r
175 \r
176 <p>&nbsp;</p>\r
177 \r
178 <script type="text/javascript" language="javascript1.2">\r
179 <!--\r
180 if (window.writeIntopicBar)\r
181         writeIntopicBar(0);\r
182 //-->\r
183 </script>\r
184 </body>\r
185 </html>\r