CurveStartPoint

Returns the start point of a curve object.

Syntax

Rhino.CurveStartPoint (strObject [, intIndex [, arrPoint])

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.

arrPoint

Optional.  Point.  The new start point.

Returns

Array

The 3-D start point of the curve if successful.

Null

If not successful, or on error.

Example

Dim strObject, arrPoint

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

If Rhino.IsCurve(strObject) Then

arrPoint = Rhino.CurveStartPoint(strObject)

Rhino.AddPoint arrPoint

End If

Also See

CurveEndPoint

CurveMidPoint

IsCurve