allow read in of "broken" step files (for manual fixing)

This commit is contained in:
Christopher Lackner 2023-10-09 11:50:18 +02:00
parent 556ec04b8e
commit e2aa646b0e

View File

@ -1166,6 +1166,8 @@ namespace netgen
auto e = emap(i1); auto e = emap(i1);
auto edge = TopoDS::Edge(e); auto edge = TopoDS::Edge(e);
auto verts = GetVertices(e); auto verts = GetVertices(e);
if(verts.size() == 0)
continue;
auto occ_edge = make_unique<OCCEdge>(edge, GetVertex(verts[0]), GetVertex(verts[1]) ); auto occ_edge = make_unique<OCCEdge>(edge, GetVertex(verts[0]), GetVertex(verts[1]) );
occ_edge->properties = GetProperties(e); occ_edge->properties = GetProperties(e);
edges.Append(std::move(occ_edge)); edges.Append(std::move(occ_edge));