Returns the start point of a curve object.
rhinoscriptsyntax.CurveStartPoint (curve_id, index=-1, point=None)
rhinoscript.curve.CurveStartPoint (curve_id, index=-1, point=None)
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. |
Point3d |
The 3-D starting point of the curve if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
object = rs.GetObject("Select a curve")
if rs.IsCurve(object):
point = rs.CurveStartPoint(object)
rs.AddPoint(point)