- CompareShapes::DataMapOfShapeDouble aCash;
- CompareShapes shComp(&aCash);
- std::stable_sort(aShapesVec.begin(), aShapesVec.end(), shComp);
-
- std::vector<TopoDS_Shape>::const_iterator anIter = aShapesVec.begin();
- for (; anIter != aShapesVec.end(); ++anIter) {
- GeomShapePtr aShapePtr(new GeomAPI_Shape);
- aShapePtr->setImpl<TopoDS_Shape>(new TopoDS_Shape(*anIter));
- mySorted.push_back(aShapePtr);
- }
+GeomAlgoAPI_NExplode::GeomAlgoAPI_NExplode(const ListOfShape& theShapes,
+ const ShapeOrder theOrder)
+ : mySorted(theShapes.begin(), theShapes.end())
+{
+ reorder(theOrder);