Curve=BRep_Tool::Curve(aEdge,First,Last);

Curve=BRep_Tool::Curve(aEdge,First,Last);

Hi All,

anyone know how can I get the value of the First and the Last out?

Thanks

MCV's picture

Hi,it might be, that I misunderstood your question but the 2 interesting values will be written by the algorithm.
So you do not set those values, you receive them.
But you must define them before as "Standar_Real" variables and you will be fine.
Generally speaking, if you seek for the first/last parameter of a curve (i.e. a "Geom_BSplinesCurve), you just use the methods "FirstParameter()" and "LastParameter()". You then may assign them to 2 "Standard_Real" variables too. That means the same.

Good luck.

MCV

DiRose's picture

Hi Marcol,

Thanks for answered my question. this is what i wanted. thanks a lot:-)