Logo Search packages:      
Sourcecode: inkscape version File versions

Piecewise< SBasis > Geom::arcLengthSb ( Piecewise< D2< SBasis > > const &  M,
double  tol 

returns a function giving the arclength at each point in M.

M the Element.
tol the maximum error allowed.

Definition at line 320 of file sbasis-geometric.cpp.

References Geom::Piecewise< T >::segs.

Referenced by arc_length_parametrization(), and arcLengthSb().

    Piecewise<D2<SBasis> > dM = derivative(M);
    Piecewise<SBasis> dMlength = sqrt(dot(dM,dM),tol,3);
    Piecewise<SBasis> length = integral(dMlength);
    return length;

Generated by  Doxygen 1.6.0   Back to index