Salome HOME
projects
/
modules
/
geom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e653d30
)
Fix a bug with raising exception on computing bonding box for invalid shape
author
vsr
<vsr@opencascade.com>
Fri, 31 Oct 2014 09:05:09 +0000
(12:05 +0300)
committer
vsr
<vsr@opencascade.com>
Fri, 31 Oct 2014 09:05:09 +0000
(12:05 +0300)
src/GEOMUtils/GEOMUtils.cxx
patch
|
blob
|
history
diff --git
a/src/GEOMUtils/GEOMUtils.cxx
b/src/GEOMUtils/GEOMUtils.cxx
index 44e55da79024fb50881b22567913ef6dd1c88b5e..2a28e34ccaa25eed3e3c26bf5db6ff63dc483ce3 100644
(file)
--- 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]);