}
// Iterate over the map and group shapes.
- NCollection_Vector<TopTools_ListOfShape> aGroups; // vector of groups of shapes connected by vertices
+ NCollection_Vector<TopTools_ListOfShape> aGroups; // groups of shapes connected by vertices
while (!allVertices.IsEmpty()) {
// Get first group of shapes in map, and then unbind it.
const TopoDS_Shape& aKey = allVertices.First();
const TopTools_ListOfShape& aMList = aIsModified ?
aUnifyAlgo.History()->Modified(aShape) : aUnifyAlgo.History()->Generated(aShape);
for (TopTools_ListIteratorOfListOfShape aModified(aMList); aModified.More(); aModified.Next()) {
- for (TopExp_Explorer anExp(aModified.Value(), aShape.ShapeType()); anExp.More(); anExp.Next()) {
+ for (TopExp_Explorer anExp(aModified.Value(), aShape.ShapeType());
+ anExp.More(); anExp.Next()) {
GeomShapePtr aGeomShape(new GeomAPI_Shape());
aGeomShape->setImpl(new TopoDS_Shape(anExp.Current()));
theHistory.push_back(aGeomShape);
// std::shared_ptr<GeomAPI_Shape> aShapePtr = ModelAPI_Tools::shape(aCompSolid);
// if (aShapePtr.get()) {
// TopoDS_Shape aShape = aShapePtr->impl<TopoDS_Shape>();
- // int aPriority = StdSelect_BRepSelectionTool::GetStandardPriority(aShape, TopAbs_COMPSOLID);
- // /// It is important to have priority for the shape of comp solid result less than priority
+ // int aPriority = StdSelect_BRepSelectionTool::GetStandardPriority(aShape, TopAbs_COMPSOLID);
+ // /// It is important to have priority for the shape of comp solid result less than priority
// /// for the presentation shape which is a sub-result.
// /// Reason is to select the sub-objects before: #1592
// aPriority = aPriority - 1;