CurveStartPoint

Returns the start point of a curve object.

Syntax

rhinoscriptsyntax.CurveStartPoint (curve_id, index=-1, point=None)

rhinoscript.curve.CurveStartPoint (curve_id, index=-1, point=None)

Parameters

curve_id

Required. String or Guid.  The object's identifier.

index

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

point

Optional. The new start point.

Returns

Point3d

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

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

object = rs.GetObject("Select a curve")

if rs.IsCurve(object):

    point = rs.CurveStartPoint(object)

    rs.AddPoint(point)

Also See

CurveEndPoint

CurveMidPoint

IsCurve