]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/GeomAPI/GeomAPI_Shape.cpp
Salome HOME
Issue #20167: checkPythonDump() errors
[modules/shaper.git] / src / GeomAPI / GeomAPI_Shape.cpp
index 4ddbe474e83b8a396880f1cf503837213033f630..ea59ae09b468ba0bf9a403cc5c97dc9f43624401 100644 (file)
@@ -593,7 +593,7 @@ bool GeomAPI_Shape::computeSize(double& theXmin, double& theYmin, double& theZmi
   if (aShape.IsNull())
     return false;
   Bnd_Box aBndBox;
-  BRepBndLib::Add(aShape, aBndBox, false);
+  BRepBndLib::AddOptimal(aShape, aBndBox, false, true);
   if (aBndBox.IsVoid())
     return false;
   aBndBox.Get(theXmin, theYmin, theZmin, theXmax, theYmax, theZmax);