Fixes for polygonal facesets and skip over errors in SVG

This commit is contained in:
Thomas Krijnen
2020-08-13 12:22:03 +02:00
parent e9b791adaa
commit afb2aaab5a
2 changed files with 51 additions and 52 deletions
+3 -1
View File
@@ -443,7 +443,9 @@ void SvgSerializer::write(const IfcGeom::BRepElement<real_t>* o)
const TopoDS_Shape& subshape = it.Value();
Bnd_Box bb;
BRepBndLib::Add(it.Value(), bb);
try {
BRepBndLib::Add(it.Value(), bb);
} catch (const Standard_Failure&) {}
// Empty geometry
if (bb.IsVoid()) {