Tue, 03/25/2003 - 20:00
Forums:
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
Thu, 03/27/2003 - 18:09
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().
Fri, 04/04/2003 - 15:08
Thanks Gerard, just the information I needed.