Extends a non-closed curve object by a line, arc, or smooth extension until it intersects a collection of objects.
rhinoscriptsyntax.ExtendCurve (curve_id, extension_type, side, boundary_object_ids)
rhinoscript.curve.ExtendCurve (curve_id, extension_type, side, boundary_object_ids)
curve_id |
Required. String or Guid. The object's identifier. |
||||||||
extension_type |
Required. Number. Type of extension.
|
||||||||
side |
Required. Number. The size to extent.
|
||||||||
boundary_object_ids |
Required. List or Tuple. The identifiers of curve, surface, and polysurface objects that will be used as boundary objects. |
Guid |
The identifier of the extended object if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
filter = rs.filter.curve | rs.filter.surface | rs.filter.polysurface
objects = rs.GetObjects("Select boundary objects", filter)
if objects:
curve = rs.GetObject("Select curve to extend", rs.filter.curve)
if curve: rs.ExtendCurve( curve, 2, 1, objects )