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
57 </style><script type="text/javascript" language="javascript1.2" src="whmsg.js"></script>
\r
58 <script type="text/javascript" language="javascript" src="whver.js"></script>
\r
59 <script type="text/javascript" language="javascript1.2" src="whproxy.js"></script>
\r
60 <script type="text/javascript" language="javascript1.2" src="whutils.js"></script>
\r
61 <script type="text/javascript" language="javascript1.2" src="whtopic.js"></script>
\r
63 <body><script type="text/javascript" language="javascript1.2">
\r
65 if (window.gbWhTopic)
\r
67 if (window.addTocInfo)
\r
69 addTocInfo("GEOM module\nCreating geometrical objects\nCreation of Advanced Geometrical Objects\nExplode");
\r
70 addButton("show",BTN_TEXT,"Show","","","","",0,0,"","","");
\r
73 if (window.writeBtnStyle)
\r
76 if (window.writeIntopicBar)
\r
79 if (window.setRelStartPage)
\r
81 setRelStartPage("geom.htm");
\r
90 document.location.reload();
\r
93 <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
95 <p class="whs2">To<span style="font-weight: bold;"><B> Explode</B></span>
\r
96 an object into subshapes, in the main menu select <span style="font-weight: bold;"><B>New
\r
97 Entity > Explode</B></span>.</p>
\r
99 <p class="whs3"> </p>
\r
101 <p class="whs4"><span
\r
102 style="font-size: 12pt;"><font size=3 style="font-size:12pt;">To create a list of subshapes
\r
103 (vertices, edges, wires etc.) of the given shape using the </font></span><span
\r
104 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
105 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
106 Object,</B></font></span><span style="font-size: 12pt;"><font size=3 style="font-size:12pt;"> which will be exploded and
\r
107 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
108 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
110 <p class="whs5"><b style="font-weight: bold;"><span style="font-weight: normal;">The</span>
\r
111 Result <span style="font-weight: normal;">of the operation will be a List</span>
\r
112 of</b> GEOM_Objects (edges, faces, solids or compsolids).</p>
\r
114 <p class="whs5"> </p>
\r
116 <p class="whs5"><b style="font-weight: bold;"><span style="font-weight: normal;">Using</span>
\r
117 TUI Commands<span style="font-weight: normal;"> you can perform this operation
\r
118 in a variety of ways:</span> </b></p>
\r
120 <ul type="disc" class="whs6">
\r
122 <li class=kadov-p><p class="whs5"><span style="font-style: italic;"><I>geompy.SubShapeAll(Shape,
\r
123 Type)</I></span> explodes a Shape on subshapes of a given Type and returns
\r
124 a <span style="font-weight: bold;"><B>List</B></span> of sub-shapes. </p></li>
\r
126 <li class=kadov-p><p class="whs5"><span style="font-style: italic;"><I>geompy.SubShapeAllIDs(Shape,
\r
127 Type)</I></span> explodes
\r
128 a Shape on subshapes of a given Type and returns a List of IDs of sub-shapes.
\r
131 <li class=kadov-p><p class="whs5"><span style="font-style: italic;"><I>geompy.SubShapeAllSorted(Shape,
\r
132 Type)</I></span> explodes
\r
133 a shape on subshapes of a given type and <span style="font-size: 12pt;"><font size=3 style="font-size:12pt;">sorts
\r
134 them by coordinates of their gravity centers, returning a
\r
135 list of sub-shapes. </font></span></p></li>
\r
137 <li class=kadov-p><p class="whs7">geompy.SubShapeAllSortedIDs(Shape,
\r
138 Type) <span style="font-style: normal;">explodes
\r
139 a shape on subshapes of a given type</span> <span style="font-style: normal;">and
\r
140 sorts them by coordinates of their gravity centers, returning
\r
141 a List of IDs of sub-shapes.</span></p></li>
\r
143 <li class=kadov-p><p class="whs7"><span
\r
144 style="font-style: normal;">g</span>eompy.SubShape(Shape, Type, ListOfInd)
\r
145 <span style="font-style: normal;">allows
\r
146 to obtain a compound of sub-shapes of the
\r
147 Shape, selected
\r
148 by they indices in a list of all sub-shapes of the given Type. Each index
\r
149 is in the range [1, Nb_Sub-Shapes_Of_Given_Type].</span> </p></li>
\r
151 <li class=kadov-p><p class="whs8"><span
\r
152 style="font-size: 12pt; font-style: normal;"><font size=3 style="font-size:12pt;">geompy.SubShapeSorted(Shape,
\r
153 Type, ListOfInd) allows to obtain a compound of sub-shapes of the Shape,
\r
154 selected by they indices in sorted list of all sub-shapes of the given
\r
155 Type. Each index is in the range [1, Nb_Sub-Shapes_Of_Given_Type] </font></span></p></li>
\r
158 <p class="whs5"> </p>
\r
160 <p class="whs5"><b style="font-weight: bold;">Arguments:</b>
\r
161 1 SHAPE + 1 type of SubShape.</p>
\r
163 <p class="whs5"> </p>
\r
165 <p class="whs5"> </p>
\r
167 <p class="whs9"><img src="pics/neo-obj1.png" x-maintain-ratio="TRUE" width="312px" height="283px" border="0" class="img_whs10"></p>
\r
169 <p class="whs4"> </p>
\r
173 <script type="text/javascript" language="javascript1.2">
\r
175 if (window.writeIntopicBar)
\r
176 writeIntopicBar(0);
\r