Forum archiveIssue archiveOther usage issues

Archived discussion

Coordinates from Edges

Other usage issuesTue, 03/25/2003 - 20:002 replies

Browse this forum
QuestionAuthor

I've intersected a plane with a shape using BRepAlgoAPI_Section and seem to have obtained a shape containing a numebr of edges. I need to be able to convert the edges into a set of coordinates (breaking curves down as necessary). Does anyone know how this can be done?

Thanks...Mark

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

For straight edges you can use the TopExp::FirstVertex and LastVertex functions. Convert the resulting TopoDS_Vertex to a gp_Pnt using BRep_Tool::Pnt. For curved edges you will have to parameterise the curve to get the points alog the curve using Value().

02Commenter-2

Thanks Gerard, just the information I needed.