Coordinates from Edges

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

Gerard Gartside's picture

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().

Mark English's picture

Thanks Gerard, just the information I needed.