Skip to content

Commit 08557c2

Browse files
committed
Don't fail on empty bounding box during halfspace processing
1 parent a54b786 commit 08557c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ifcgeom/IfcGeomFunctions.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3127,6 +3127,10 @@ bool IfcGeom::Kernel::fit_halfspace(const TopoDS_Shape& a, const TopoDS_Shape& b
31273127
Bnd_Box bb;
31283128
BRepBndLib::Add(a, bb);
31293129

3130+
if (bb.IsVoid()) {
3131+
return false;
3132+
}
3133+
31303134
double xs[2], ys[2], zs[2];
31313135
bb.Get(xs[0], ys[0], zs[0], xs[1], ys[1], zs[1]);
31323136

0 commit comments

Comments
 (0)