Geom_Curve to Geom_Circle

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

Thanks & Regards,
Vidhyan

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

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

Vidhyan's picture

Thanks a lot Roman Lygin it helped me a lot