I need to convert an Edge to a Geom_Curve. I did that and there are not compilation error :
Handle(Geom_Curve) myCurve = BRep_Tool::Curve(myEdge, First, Last);
Handle(Geom_BSplineCurve) myBSplCurve = Handle(Geom_BSplineCurve)::DownCast( myCurve);
Standard_Integer ival = myBSplCurve->NbPoles();
When I execute the program I have an error on this last line.
Error at adress ... Memory cannot be "read".
Can someone help me.
Thanks in advance,