Length of a Bezier Curve ?

Is there a simple way to get the length of a curve (Bezier) ?

Thanxs.
Jean-Yves

Evgeny Lodyzhehsky's picture

Dear Jean-Yves Brud.

Try to use:

Standard_Real Length;
GeomAdaptor_Curve GAC;
//
Handle(Geom_BezierCurve) BC=...;//your curve
GAC.Load(C);
Length=GCPnts_AbscissaPoint::Length(GAC);//length of the curve