retreive length of a BsplineCurve

Hy Guy !

I've got a basic question : How Can I retreive the length of a BSpline Curve (3D) ?

Thank's a lot,

Norbert.

ekiroglu's picture

Hello Norbert,
If Edge is a curve, you can get the length of it by

GProp_GProps System;

BRepGProp::LinearProperties( Edge, System );

Standard_Real Dist = System.Mass( );

Best Regards,
Erki

Prasad G's picture

Hi

U can try this also

Handle(Geom_Curve) GC;
Standard_Real Tol = Precision::Confusion(), L;

GeomAdaptor_Curve AC(GC);
L = GCPnts_AbscissaPoint::Length(AC, Tol);

Bye

- Prasad