AutoMovie API
    Preparing search index...

    The loop variant for top silhouettes and section loops: the dense closed loop is parameterised by cumulative chord length, every point starts as a knot with its periodic central-difference tangent, and knots are removed as in AutoMovieMeshExtract.reduce, the deviation being the Euclidean distance of a dense point from its span and both tangent components refitted. Never removed: the extremes along both axes (their axis component of tangent held at zero, so the curve's extreme is the sample's), the pinned indices and the prominent inflections (sign changes of the turn between bends whose sagittas exceed twice the tolerance after the weaker facet wiggles merge away); at least four knots remain.

    The result owns its knot records and point/tangent tuples. Finite coordinates, nonzero consecutive retained chords and a meaningful nonnegative tolerance are caller premises; only the minimum retained sample count is checked.

    type IReduceLoopResult = {
        error: number;
        knots: IAutoMoviePlanarHermiteKnot[];
        length: number;
    }
    Index
    error: number

    Largest Euclidean residual at retained dense chord parameters, in the coordinate unit; this is neither a closest-point distance nor a continuous Hausdorff certificate.

    New mutable periodic Hermite knots in input loop order, at least four; point and tangent tuples are copied and the closing point is not repeated.

    length: number

    Sum of the retained dense loop's chord lengths including closure, in its coordinate unit; this is the Hermite period, not fitted-curve arc length.