Extends a non-closed curve object by smooth extension to a point.
Rhino.ExtendCurvePoint (strObject, intSide, arrPoint [, intType])
strObject |
Required. String. The object's identifier. |
||||||||
intSide |
Required. Number. The size to extent.
|
||||||||
arrPoint |
Required. Array. The 3-D point. |
||||||||
intType |
Optional. Number. Type of extension.
|
String |
The identifier of the extended object if successful. |
Null |
If not successful, or on error. |
Const rhObjectCurve = 4
Dim strCurve, arrPoint,
strCurve = Rhino.GetObject("Select curve to extend", rhObjectCurve)
If Not IsNull(strCurve) Then
arrPoint = Rhino.GetPoint("Point to extend to")
If IsArray(arrPoint) Then
Rhino.ExtendCurvePoint strCurve, 1, arrPoint
End If
End If