projects
/
occt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a345bec
)
0030428: Modeling Algorithms - BRepBndLib::AddOBB() throws exception on empty Compound
author
kgv
<kgv@opencascade.com>
Sat, 29 Dec 2018 12:41:54 +0000
(15:41 +0300)
committer
bugmaster
<bugmaster@opencascade.com>
Thu, 10 Jan 2019 13:12:13 +0000
(16:12 +0300)
Added missing Bnd_Box::IsVoid() check.
src/BRepBndLib/BRepBndLib_1.cxx
patch
|
blob
|
blame
|
history
diff --git
a/src/BRepBndLib/BRepBndLib_1.cxx
b/src/BRepBndLib/BRepBndLib_1.cxx
index 4035a3b885ff83e15736fa484dfc47f556ae8ccd..c70c2df23678e02b31ca7006b11595ae8699ad55 100644
(file)
--- a/
src/BRepBndLib/BRepBndLib_1.cxx
+++ b/
src/BRepBndLib/BRepBndLib_1.cxx
@@
-414,6
+414,10
@@
static void ComputePCA(const TopoDS_Shape& theS,
{
BRepBndLib::Add(aST, aShapeBox);
}
+ if (aShapeBox.IsVoid())
+ {
+ return;
+ }
gp_Pnt aPMin = aShapeBox.CornerMin();
gp_Pnt aPMax = aShapeBox.CornerMax();