Skip to content
Snippets Groups Projects
Commit bbee2487 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

skipping embed edges from loops

parent 8ce2cfcd
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,14 @@ OCCFace::OCCFace(GModel *m, TopoDS_Face _s, int num, TopTools_IndexedMapOfShape
TopoDS_Edge edge = TopoDS::Edge(exp3.Current());
int index = emap.FindIndex(edge);
GEdge *e = m->getEdgeByTag(index);
if(e){
if(!e){
Msg::Error("Unknown edge %d in face %d", index, num);
}
else if(std::find(embedded_edges.begin(), embedded_edges.end(), e) !=
embedded_edges.end()){
Msg::Debug("OCC Face %d - Skipping embedded edge in loop", num);
}
else{
l_wire.push_back(e);
Msg::Debug("Edge %d ori %d", e->tag(), edge.Orientation());
e->addFace(this);
......@@ -55,9 +62,6 @@ OCCFace::OCCFace(GModel *m, TopoDS_Face _s, int num, TopTools_IndexedMapOfShape
occe->setTrimmed(this);
}
}
else{
Msg::Error("Unknown edge %d in face %d", index, num);
}
}
GEdgeLoop el(l_wire);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment