Check for empty bounding boxes in boolean op filter

This commit is contained in:
Thomas Krijnen
2018-09-25 12:47:06 +02:00
parent 00095028b9
commit e12b413d7f
+8
View File
@@ -262,11 +262,19 @@ namespace {
Bnd_Box A;
BRepBndLib::Add(a, A);
if (A.IsVoid()) {
return;
}
TopTools_ListIteratorOfListOfShape it(b);
for (; it.More(); it.Next()) {
Bnd_Box B;
BRepBndLib::Add(it.Value(), B);
if (B.IsVoid()) {
continue;
}
if (A.Distance(B) < p) {
c.Append(it.Value());
}