Don't fail on empty bounding box during halfspace processing

This commit is contained in:
Thomas Krijnen
2018-09-17 15:21:12 +02:00
parent be9ffa7322
commit 3bf8aba54f
+4
View File
@@ -3127,6 +3127,10 @@ bool IfcGeom::Kernel::fit_halfspace(const TopoDS_Shape& a, const TopoDS_Shape& b
Bnd_Box bb;
BRepBndLib::Add(a, bb);
if (bb.IsVoid()) {
return false;
}
double xs[2], ys[2], zs[2];
bb.Get(xs[0], ys[0], zs[0], xs[1], ys[1], zs[1]);