CurveArcLengthPoint

Returns the point on the curve that is a specified arc length from the start of the curve.

Syntax

rhinoscriptsyntax.CurveArcLengthPoint ( curve_id, length, from_start=True )

rhinoscript.curve.CurveArcLengthPoint ( curve_id, length, from_start=True )

Parameters

curve_id

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

length

Required.  Number. The arc length from the start of the curve to evaluate.

from_start

Optional.  Boolean.  If not specified or True, then the arc length point is calculated from the start of the curve. If False, the arc length point is calculated from the end of the curve.

Returns

Point3d

The 3-D point if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

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

if rs.IsCurve(obj):

    length = rs.CurveLength(obj)

    point = rs.CurveArcLengthPoint(obj, length/3.0)

    rs.AddPoint( point )

Also See

CurveEndPoint

CurveMidPoint

CurveStartPoint