DiscussionsIssue archiveOther usage issues

Archived discussion

Vertices of TopoDS_Shape

Other usage issuesThu, 03/20/2008 - 21:231 reply

Browse this forum
QuestionAuthor

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.

01Commenter-1

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);
.......
}