DiscussionsIssue archiveOther usage issues

Archived discussion

Getting the Brep_TVertex

Other usage issuesWed, 02/18/2009 - 09:451 reply

Browse this forum
QuestionAuthor

I am creating a vertices using BrepBuilder_MakeVertex of a point. I want to get the points and change its value. So first i got the AIS Shape using the Shape. Handle_TopoDS_TShape tsp = shp.TShape(); will return me the T_Shape of the Vertex. How to get the Brep_TVertex values using the TShape i am having. Please Help

Thanks & Regards
Author

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

Hi Author,

Take a look at the 2nd and the 3rd diagrams at my post here http://opencascade.blogspot.com/2009/02/topology-and-geometry-in-open-ca....
In fact, TShape returned by TopoDS_Vertex::TShape() *is* BRep_TVertex, so you can cast:

Handle(BRep_TVertex) aTVertex = Handle(BRep_TVertex)::DownCast (aVertex.TShape());

However normally you never need this (beware of doing this in places of extensive computations). If you simply need a point underlying a vertex, use BRep_Tool::Pnt().

Commenter-1

---
opencascade.blogspot.com - blog on Open CASCADE