• Extracts the sub-curve between parameters u0 < u1 as a new clamped NURBS curve whose parameter range is [u0, u1].

    Both parameters are clamped into the curve's parameter range. Knots are inserted to multiplicity degree at each cut so the result traces exactly the same geometry. Works for clamped and unclamped knot vectors.

    Parameters

    • curve: AcGeNurbsCurveData

      Source curve (not modified)

    • u0: number

      Start parameter of the piece

    • u1: number

      End parameter of the piece

    • tol: number = KNOT_TOL

      Knot snapping tolerance

    Returns AcGeNurbsCurveData | undefined

    The extracted piece, or undefined when u1 - u0 <= tol