20 #ifndef Selector_NExplode_H_
21 #define Selector_NExplode_H_
25 #include <TopoDS_Shape.hxx>
41 const bool theOldOrder =
false);
44 const TopAbs_ShapeEnum theType,
45 const bool theOldOrder =
false);
48 SELECTOR_EXPORT
int index(
const TopoDS_Shape& theSubShape);
51 SELECTOR_EXPORT TopoDS_Shape
shape(
int& theIndex);
54 std::shared_ptr<GeomAlgoAPI_NExplode>
mySorted;
Sort shapes by their centers of mass, using formula X*999 + Y*99 + Z*0.9.
Definition: GeomAlgoAPI_NExplode.h:35
Sort shapes by their centers of mass, using formula X*999 + Y*99 + Z*0.9.
Definition: Selector_NExplode.h:37
TopoDS_Shape shape(int &theIndex)
Returns a shape by an index (started from one).
Definition: Selector_NExplode.cpp:76
Selector_NExplode(const TopoDS_ListOfShape &theShapes, const bool theOldOrder=false)
Initializes the sorted list of shapes by the shapes list.
Definition: Selector_NExplode.cpp:50
std::shared_ptr< GeomAlgoAPI_NExplode > mySorted
keep the ordered list of shapes
Definition: Selector_NExplode.h:54
bool myToBeReordered
the list has to be reordered
Definition: Selector_NExplode.h:55
int index(const TopoDS_Shape &theSubShape)
Returns an index (started from one) of sub-shape in the sorted list. Returns 0 if not found.
Definition: Selector_NExplode.cpp:70