length of curve

Hi..Everybody

I think my question is so simple.
How can i get a length of Geom2d_TrimmedCurve
?

H.C Son

Stephane Routelous's picture

Handle_Geom2d_Curve C = ;
Geom2dAdaptor_Curve AC(C);
Standard_Real theLength = GCPnts_AbscissaPoint::Length(AC, Precision::Confusion());

( taken from GeomliteTest_CurveCommands.cxx )

not tried, but it should work.

HTH.

Stephane
http://www.exotk.org