JME - Application Documentation
    Preparing search index...
    • Smooths a segment's raw control points using a Catmull-Rom spline, then resamples the result to a fixed point spacing. The spline is oversampled at 3× the desired density before resampling to ensure the curve is captured accurately.

      Parameters

      • points: Tuple3[]

        Raw control points for this segment.

      • spacing: number

        Desired distance between consecutive output points (world units).

      • tension: number

        Catmull-Rom tension (0 = loose/loopy, 1 = tight/straight).

      Returns Tuple3[]

      Smoothed and evenly-spaced Tuple3 array.