ExtendCurvePoint

Extends a non-closed curve object by smooth extension to a point.

Syntax

rhinoscriptsyntax.ExtendCurvePoint (curve_id, side, point)

rhinoscript.curve.ExtendCurvePoint (curve_id, side, point)

Parameters

curve_id

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

side

Required.  Number.  The size to  extent.

Value

Description

0

Extend from the start of the curve.

1

Extend from the end of the curve.

point

Required.  The 3-D point.

Returns

Guid

The identifier of the extended object if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

curve = rs.GetObject("Select curve to extend", rs.filter.curve)

if curve:

    point = rs.GetPoint("Point to extend to")

    if point: rs.ExtendCurvePoint(curve, 1, point)

Also See

ExtendCurve

ExtendCurveLength