IPAL52557: TC7.5.0: default value in Hypothesis is different in new and saved studies

In PreciseBoundingBox(), allow an empty bnd box as input
This commit is contained in:
eap 2014-10-28 15:11:12 +03:00
parent cee59108f8
commit a86e38643d

View File

@ -812,8 +812,9 @@ TopoDS_Shape GEOMUtils::GetEdgeNearPoint (const TopoDS_Shape& theShape,
Standard_Boolean GEOMUtils::PreciseBoundingBox Standard_Boolean GEOMUtils::PreciseBoundingBox
(const TopoDS_Shape &theShape, Bnd_Box &theBox) (const TopoDS_Shape &theShape, Bnd_Box &theBox)
{ {
Standard_Real aBound[6]; if ( theBox.IsVoid() ) BRepBndLib::Add( theShape, theBox );
Standard_Real aBound[6];
theBox.Get(aBound[0], aBound[2], aBound[4], aBound[1], aBound[3], aBound[5]); theBox.Get(aBound[0], aBound[2], aBound[4], aBound[1], aBound[3], aBound[5]);
Standard_Integer i; Standard_Integer i;