threejs-worldgen
    Preparing search index...

    Function catmullRom

    • Catmull-Rom spline through points, sampled subdivisions times per segment, as a flat xyz array. Closed curves wrap around; open ones keep their end points.

      Parameters

      • points: readonly (readonly number[])[]
      • closed: boolean
      • subdivisions: number = 8

      Returns number[]