Geom_Curve to Geom_Circle

I am having a Geom_Curve and how to convert that curve to a Geom_Circle.

Thanks & Regards,

Roman Lygin's picture

RTFM ;-)

Handles must be downcasted as follows:

Handle(Geom_Circle) aCircle = Handle(Geom_Circle)::DownCast (aCurve);

if in doubt you can safely check:
if (!aCircle.IsNull()) {

--- - blog on Open CASCADE

Vidhyan's picture

Thanks a lot Roman Lygin it helped me a lot