Returns the style of a knot vector. This method works either curve or surface knots.
For more information on knots, see RhinoScript Fundamentals.
Rhino.KnotVectorStyle (intDegree, intCVCount, arKnots)
intDegree |
Required. Number. The degree. |
intCVCount |
Required. Number. The number of control points. |
arrKnots |
Required. Array. The knot vector. |
Number |
A number identifying the knot style if successful. The possible knot styles are:
|
||||||||||||||
Null |
If not successful, or on error. |
Dim strCurve, intDegree, intCVCount, arrKnots, intStyle
strCurve = Rhino.GetObject("Select curve", 4)
If Not IsNull(strCurve) Then
intDegree = Rhino.CurveDegree(strCurve)
intCVCount = Rhino.CurvePointCount(strCurve)
arrKnots = Rhino.CurveKnots(strCurve)
intStyle = Rhino.KnotVectorStyle(intDegree, intCVCount, arrKnots)
End If