IsKnotVectorPeriodic

Verifies that a knot vector is periodic. This method works either curve or surface knots.

For more information on knots, see RhinoScript Fundamentals.

Syntax

Rhino.IsKnotVectorPeriodic (intDegree, intCVCount, arKnots)

Parameters

intDegree

Required.  Number.  The degree.

intCVCount

Required.  Number.  The number of control points.

arrKnots

Required.  Array.  The knot vector.

Returns

Boolean

True if successful, False otherwise.

Null

On error.

Example

Dim strCurve, intDegree, intCVCount, arrKnots, blnResult

strCurve = Rhino.GetObject("Select curve", 4)

If Not IsNull(strCurve) Then

  intDegree = Rhino.CurveDegree(strCurve)

  intCVCount = Rhino.CurvePointCount(strCurve)

  arrKnots = Rhino.CurveKnots(strCurve)

  blnResult = Rhino.IsKnotVectorPeriodic(intDegree, intCVCount, arrKnots)

  If blnResult = True Then

    Rhino.Print "The knot vector is periodic."

  Else

    Rhino.Print "The knot vector is not periodic.

  End If

End If

Also See

IsKnotVectorClamped

IsKnotVectorUniform

KnotVectorHasBezierSpans

KnotVectorStyle