Vidhyan Tue, 03/03/2009 - 13:52 Forums: Other usage issuesI am having a Geom_Curve and how to convert that curve to a Geom_Circle. Thanks & Regards, Vidhyan Roman Lygin Tue, 03/03/2009 - 23:29 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 Log in to post comments Vidhyan Wed, 03/04/2009 - 07:17 Thanks a lot Roman Lygin it helped me a lot Log in to post comments
Tue, 03/03/2009 - 23:29
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
Wed, 03/04/2009 - 07:17
Thanks a lot Roman Lygin it helped me a lot