• Inserts knot u into a NURBS curve up to times times (Boehm / Piegl & Tiller algorithm A5.1, applied to homogeneous control points so rational curves keep their exact shape).

    The total multiplicity of u never exceeds the curve degree. A parameter within tol of an existing knot is snapped onto it.

    Parameters

    • curve: AcGeNurbsCurveData

      Source curve (not modified)

    • u: number

      Knot value to insert

    • times: number

      Requested number of insertions

    • tol: number = KNOT_TOL

      Knot snapping tolerance

    Returns AcGeNurbsCurveData

    New curve data with the same geometry