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

embedded vertices

parent c145ec43
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ void OCCRegion::setup() ...@@ -54,7 +54,7 @@ void OCCRegion::setup()
TopoDS_Edge edge = TopoDS::Edge(exp3.Current()); TopoDS_Edge edge = TopoDS::Edge(exp3.Current());
GEdge *e = model()->getOCCInternals()->getOCCEdgeByNativePtr(model(), edge); GEdge *e = model()->getOCCInternals()->getOCCEdgeByNativePtr(model(), edge);
if (!e){ if (!e){
Msg::Error("Unknown edge in face %d", tag()); Msg::Error("Unknown edge in region %d", tag());
} }
else if (edge.Orientation() == TopAbs_INTERNAL){ else if (edge.Orientation() == TopAbs_INTERNAL){
Msg::Info("Adding embedded edge %d", e->tag()); Msg::Info("Adding embedded edge %d", e->tag());
...@@ -64,6 +64,18 @@ void OCCRegion::setup() ...@@ -64,6 +64,18 @@ void OCCRegion::setup()
} }
} }
for (exp3.Init(s, TopAbs_VERTEX); exp3.More(); exp3.Next()){
TopoDS_Vertex vertex = TopoDS::Vertex(exp3.Current());
GVertex *v = model()->getOCCInternals()->getOCCVertexByNativePtr(model(), vertex);
if (!v){
Msg::Error("Unknown vertex in region %d", tag());
}
else if (vertex.Orientation() == TopAbs_INTERNAL){
Msg::Info("Adding embedded vertex %d", v->tag());
embedded_vertices.push_back(v);
}
}
Msg::Debug("OCC Region %d with %d faces", tag(), l_faces.size()); Msg::Debug("OCC Region %d with %d faces", tag(), l_faces.size());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment