Extends a non-closed curve object by smooth extension to a point.
rhinoscriptsyntax.ExtendCurvePoint (curve_id, side, point)
rhinoscript.curve.ExtendCurvePoint (curve_id, side, point)
curve_id |
Required. String or Guid. The object's identifier. |
||||||
side |
Required. Number. The size to extent.
|
||||||
point |
Required. The 3-D point. |
Guid |
The identifier of the extended object if successful. |
None |
If not successful, or on error. |
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)