TopExp_Explorer ex;
for (ex.Init(shape, TopAbs_VERTEX); ex.More(); ex.Next()) {
TopoDS_Vertex vertex = TopoDS::Vertex(ex.Current());
gp_Pnt pt = BRep_Tool::Pnt(vertex);
.......
}
Archived discussion
Vertices of TopoDS_Shape
Hi,
I guess my question is simple, but I could not find a way to do this. I want to find the coordinates of the vertices of TopoDS_Shape. Can anyone help me to do so.
Thanks a lot!!
Discussion
1 archived reply
Posts are displayed in their archived order.