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
Vidhyan

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 - http://opencascade.blogspot.com/2009/02/topology-and-geometry-in-open-ca...

Hope this helps.
Roman

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

Vidhyan's picture

Thanks Roman Lygin