mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-03 16:50:34 +05:00
allow read in of "broken" step files (for manual fixing)
This commit is contained in:
parent
556ec04b8e
commit
e2aa646b0e
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user