Converting TopoDS_Shape to Geom_Curve

Please help me in converting TopoDS_Shape to Geom_Curve. I am having a shape and i wanted to convert to Geom_curve.

Thanks & Regards

Roman Lygin's picture

You supposedly think of TopoDS_Edge, don't you ? Use BRep_Tool::Curve() which will return an underlying 3D curve.
You might want to read more about edges in my recent post on topology and geometry connections -

Hope this helps.

--- - blog on Open CASCADE

Vidhyan's picture

Thanks Roman Lygin