CurvePointCount

Returns the control points count of a curve object.

Syntax

Rhino.CurvePointCount (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

Number

The number of control points if successful.

Null

If not successful, or on error.

Example

Dim strObject, intCount

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

If Rhino.IsCurve(strObject) Then

intCount = Rhino.CurvePointCount(strObject)

Rhino.Print "Curve point count: " & CStr(intCount)

End If

Also See

DivideCurve

IsCurve