Salome HOME
Issue #2394: Incorrect selected subsolids in "union" after modifying the geometry...
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_SortListOfShapes.cpp
index f75b9ae655b0f99e7b2de0b262ade575de0ed365..a6d04aabfd57644a764b269a2e16db52417ed966 100644 (file)
@@ -133,7 +133,7 @@ class CompareShapes
     std::map<TopoDS_TShape*, Bnd_Box>::iterator aFound = myShapes.find(aS);
     if (aFound == myShapes.end()) {
       Bnd_Box aBB;
-      BRepBndLib::Add(aShape, aBB);
+      BRepBndLib::AddOptimal(aShape, aBB);
       myShapes[aS] = aBB;
       aFound = myShapes.find(aS);
     }