mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Add null check on trimmed curve
This commit is contained in:
@@ -559,6 +559,10 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcTrimmedCurve* l, TopoDS_Wire&
|
|||||||
e = BRepBuilderAPI_MakeEdge(pnts[0], pnts[1]).Edge();
|
e = BRepBuilderAPI_MakeEdge(pnts[0], pnts[1]).Edge();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (e.IsNull()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (isConic) {
|
if (isConic) {
|
||||||
// Tiny circle segnments can cause issues later on, for example
|
// Tiny circle segnments can cause issues later on, for example
|
||||||
// when the comp curve is used as the sweeping directrix.
|
// when the comp curve is used as the sweeping directrix.
|
||||||
|
|||||||
Reference in New Issue
Block a user