Function curveCatmullRomClosed

  • A curve factory for cubic Catmull–Rom spline generators.

    The curve generators produce a closed cubic Catmull–Rom spline using the specified control points and the parameter alpha, which defaults to 0.5, as proposed by Yuksel et al. When a line segment ends, the first three control points are repeated, producing a closed loop.

    Parameters

    Returns CurveGenerator