diff --git a/src/serializers/SvgSerializer.h b/src/serializers/SvgSerializer.h index 73980860d1..75373097a1 100644 --- a/src/serializers/SvgSerializer.h +++ b/src/serializers/SvgSerializer.h @@ -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);