#4450 don't fail on empty bbox in prefiltering

This commit is contained in:
Thomas Krijnen
2024-03-31 11:25:56 +02:00
parent fcf5073726
commit c16d49d683
+7
View File
@@ -406,6 +406,13 @@ namespace {
Bnd_Box box;
BRepBndLib::AddClose(s, box);
if (box.IsVoid()) {
// false or true, it doesn't really matter, just don't
// proceed because asking for a corner of a void box
// throws an exception.
return false;
}
auto lower = large_ortho_faces_.lower_bound(0.);
auto upper = large_ortho_faces_.upper_bound(min_d);