Skip to content

Commit 3102a1c

Browse files
committed
Check for empty bounding boxes in boolean op filter
1 parent a8effa8 commit 3102a1c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ifcgeom/IfcGeomFunctions.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,19 @@ namespace {
262262
Bnd_Box A;
263263
BRepBndLib::Add(a, A);
264264

265+
if (A.IsVoid()) {
266+
return;
267+
}
268+
265269
TopTools_ListIteratorOfListOfShape it(b);
266270
for (; it.More(); it.Next()) {
267271
Bnd_Box B;
268272
BRepBndLib::Add(it.Value(), B);
269273

274+
if (B.IsVoid()) {
275+
continue;
276+
}
277+
270278
if (A.Distance(B) < p) {
271279
c.Append(it.Value());
272280
}

0 commit comments

Comments
 (0)