Add null check on trimmed curve

This commit is contained in:
Thomas Krijnen
2019-09-27 15:12:35 +02:00
parent a07c2cb1f8
commit 596e13b24c
+4
View File
@@ -559,6 +559,10 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcTrimmedCurve* l, TopoDS_Wire&
e = BRepBuilderAPI_MakeEdge(pnts[0], pnts[1]).Edge();
}
if (e.IsNull()) {
return false;
}
if (isConic) {
// Tiny circle segnments can cause issues later on, for example
// when the comp curve is used as the sweeping directrix.