1 <!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">
\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
11 if (navigator.appName !="Netscape")
\r
12 { document.write("<link rel='stylesheet' href='default.css'>");}
\r
15 <style type="text/css">
\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
28 </style><script type="text/javascript" language="JavaScript">
\r
30 if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))
\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
39 <script type="text/javascript" language="JavaScript" title="WebHelpInlineScript">
\r
42 if (innerWidth != origWidth || innerHeight != origHeight)
\r
45 if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
\r
46 origWidth = innerWidth;
\r
47 origHeight = innerHeight;
\r
53 <style type="text/css">
\r
55 div.WebHelpPopupMenu { position:absolute; left:0px; top:0px; z-index:4; visibility:hidden; }
\r
56 p.WebHelpNavBar { text-align:right; }
\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
65 if (window.gbWhTopic)
\r
67 if (window.setRelStartPage)
\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
76 if (window.setRelStartPage)
\r
78 setRelStartPage("index.htm");
\r
88 document.location.reload();
\r
92 <body><script type="text/javascript" language="javascript1.2">
\r
94 if (window.writeIntopicBar)
\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"> </font></span></b>Explode</h1>
\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 > Explode</B></span>.</p>
\r
104 <p class="whs3"> </p>
\r
106 <p class="whs4"><span
\r
107 style="font-size: 12pt;"><font size=3 style="font-size:12pt;">To create a list of 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
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
119 <p class="whs5"> </p>
\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
125 <ul type="disc" class="whs6">
\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
131 <li class=kadov-p><p class="whs5"><span style="font-style: italic;"><I>geompy.SubShapeAllIDs(Shape,
\r
132 Type)</I></span> explodes
\r
133 a Shape on subshapes of a given Type and returns a List of IDs of sub-shapes.
\r
136 <li class=kadov-p><p class="whs5"><span style="font-style: italic;"><I>geompy.SubShapeAllSorted(Shape,
\r
137 Type)</I></span> 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 a
\r
140 list of sub-shapes. </font></span></p></li>
\r
142 <li class=kadov-p><p class="whs7">geompy.SubShapeAllSortedIDs(Shape,
\r
143 Type) <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, returning
\r
146 a List of IDs of sub-shapes.</span></p></li>
\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 <span style="font-style: normal;">allows
\r
151 to obtain a compound of sub-shapes of the
\r
152 Shape, 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
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
163 <p class="whs5"> </p>
\r
165 <p class="whs5"><b style="font-weight: bold;">Arguments:</b>
\r
166 1 SHAPE + 1 type of SubShape.</p>
\r
168 <p class="whs5"> </p>
\r
170 <p class="whs5"> </p>
\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
174 <p class="whs4"> </p>
\r
178 <script type="text/javascript" language="javascript1.2">
\r
180 if (window.writeIntopicBar)
\r
181 writeIntopicBar(0);
\r