2008-03-07 12:45:34 +05:00
|
|
|
/*!
|
|
|
|
|
|
|
|
\page create_explode_page Explode
|
|
|
|
|
2012-08-09 13:58:02 +06:00
|
|
|
\n To \b Explode an object into sub-shapes, in the <b>Main Menu</b>
|
2008-03-07 12:45:34 +05:00
|
|
|
select <b>New Entity > Explode</b>.
|
|
|
|
|
2012-08-09 13:58:02 +06:00
|
|
|
\n To create a list of sub-shapes (vertices, edges, wires etc.) of the
|
2008-03-07 12:45:34 +05:00
|
|
|
given shape using the \b Explode operation, you need to define the <b>Main
|
2012-08-09 13:58:02 +06:00
|
|
|
Object</b>, which will be exploded and the <b>Type of Sub-shapes</b> you wish to
|
2008-03-07 12:45:34 +05:00
|
|
|
obtain from it.
|
|
|
|
\n The \b Result of the operation will be a List of \b GEOM_Objects
|
|
|
|
(vertexes, edges, wires, faces, shells or solids).
|
|
|
|
|
|
|
|
\n Using <b>TUI Commands</b> you can perform this operation in a
|
|
|
|
variety of ways:
|
|
|
|
<ul>
|
2012-08-09 13:58:02 +06:00
|
|
|
<li><em>geompy.ExtractShapes(Shape, Type, isSorted)</em> explodes a
|
|
|
|
Shape into sub-shapes of a given Type and returns a List of sub-shapes.
|
|
|
|
This method does not return the Shape itself if it matches the
|
|
|
|
Type.</li>
|
2008-03-07 12:45:34 +05:00
|
|
|
<li><em>geompy.SubShapeAll(Shape, Type)</em> explodes a Shape on
|
2012-08-09 13:58:02 +06:00
|
|
|
sub-shapes of a given Type and returns a List of sub-shapes.</li>
|
2008-03-07 12:45:34 +05:00
|
|
|
<li><em>geompy.SubShapeAllIDs(Shape, Type)</em> explodes a Shape on
|
2012-08-09 13:58:02 +06:00
|
|
|
sub-shapes of a given Type and returns a List of IDs of
|
2008-03-07 12:45:34 +05:00
|
|
|
sub-shapes.</li>
|
2012-08-09 13:58:02 +06:00
|
|
|
<li><em>geompy.SubShapeAllSortedCentres(Shape, Type)</em> explodes a
|
2014-07-17 16:06:57 +06:00
|
|
|
shape on sub-shapes of a given type and sorts them taking into account
|
2014-10-27 15:05:11 +05:00
|
|
|
their gravity centers, to provide a stable order of sub-shapes.
|
2014-07-17 16:06:57 +06:00
|
|
|
It returns a list of sub-shapes.</li>
|
2012-08-09 13:58:02 +06:00
|
|
|
<li><em>geompy.SubShapeAllSortedCentresIDs(Shape, Type)</em> explodes
|
2014-07-17 16:06:57 +06:00
|
|
|
a shape on sub-shapes of a given type and sorts them taking into
|
2014-10-27 15:05:11 +05:00
|
|
|
account their gravity centers, to provide a stable order of sub-shapes.
|
2014-07-17 16:06:57 +06:00
|
|
|
It returns a List of IDs of sub-shapes.</li>
|
2008-03-07 12:45:34 +05:00
|
|
|
<li><em>geompy.SubShape(Shape, Type, ListOfInd)</em> allows to obtain
|
|
|
|
a compound of sub-shapes of the Shape, selected by they indices in a
|
|
|
|
list of all sub-shapes of the given Type. Each index is in the range
|
|
|
|
[1, Nb_Sub-Shapes_Of_Given_Type].</li>
|
2012-08-09 13:58:02 +06:00
|
|
|
<li><em>geompy.SubShapeSortedCentres(Shape, Type, ListOfInd)</em>
|
|
|
|
allows to obtain a compound of sub-shapes of the Shape, selected by
|
|
|
|
they indices in sorted list of all sub-shapes of the given Type. Each
|
|
|
|
index is in the range [1, Nb_Sub-Shapes_Of_Given_Type]</li>
|
2008-03-07 12:45:34 +05:00
|
|
|
</ul>
|
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
\n <b>Arguments: </b>1 SHAPE + 1 type of SubShape.
|
2008-03-07 12:45:34 +05:00
|
|
|
|
|
|
|
\image html neo-obj1.png
|
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
<b>Example:</b>
|
|
|
|
|
|
|
|
\image html explode.png "A box, exploded into faces"
|
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
*/
|