mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-24 23:20:32 +05:00
Fix a bug with raising exception on computing bonding box for invalid shape
This commit is contained in:
parent
e653d307b7
commit
6b8f1473f7
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user