CurveKnots

Returns the knots, or knot vector, of a curve object.

Syntax

Rhino.CurveKnots (strObject [, intIndex])

Parameters

strObject

Required.  String.  The object's identifier.

intIndex

Optional. Number. If strObject identifies a polycurve object, then intIndex identifies the curve segment of the polycurve to query.

Returns

Array

The knot values of the curve  if successful.

Null

If not successful, or on error.

Example

Dim strObject, arrKnots, dblKnot

strObject = Rhino.GetObject("Select a curve")

If Rhino.IsCurve(strObject) Then

arrKnots = Rhino.CurveKnots(strObject)

If IsArray(arrKnots) Then

For Each dblKnot In arrKnots

Rhino.Print "Curve knot value: " & CStr(dblKnot)

Next

End If

End If

Also See

CurveKnotCount

IsCurve