From 6b8f1473f717b642611c4a73c2220a4348839723 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 31 Oct 2014 12:05:09 +0300 Subject: [PATCH] Fix a bug with raising exception on computing bonding box for invalid shape --- src/GEOMUtils/GEOMUtils.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GEOMUtils/GEOMUtils.cxx b/src/GEOMUtils/GEOMUtils.cxx index 44e55da79..2a28e34cc 100644 --- a/src/GEOMUtils/GEOMUtils.cxx +++ b/src/GEOMUtils/GEOMUtils.cxx @@ -813,6 +813,7 @@ Standard_Boolean GEOMUtils::PreciseBoundingBox (const TopoDS_Shape &theShape, Bnd_Box &theBox) { if ( theBox.IsVoid() ) BRepBndLib::Add( theShape, theBox ); + if ( theBox.IsVoid() ) return Standard_False; Standard_Real aBound[6]; theBox.Get(aBound[0], aBound[2], aBound[4], aBound[1], aBound[3], aBound[5]); -- 2.39.2