Offsets a curve by a distance. The offset curve will be added to Rhino.
Rhino.OffsetCurve (strObject, arrOrigin, dblDistance [, arrNormal [, arrStyle]])
|
strObject |
Required. String. The object's identifier. | ||||||||
|
arrOrigin |
Required. Array. The 3D point identifying the origin of the offset. | ||||||||
|
dblDistance |
Requried. Number. The distance of the offset. | ||||||||
|
arrNormal |
Optional. Array. A 3D vector identifying the normal of the plane in which the offset will occur. If omitted, the normal of the active construction plane will be used. | ||||||||
|
arrStyle |
Optional. Number. The corner style. Of omitted, a sharp corner style is used.
|
|
Array |
An array containing the identifiers of the new objects if successful. |
|
Null |
If not successful, or on error. |
Const rhObjectCurve = 4
Dim strObject
strObject = Rhino.GetObject("Select a curve", rhObjectCurve)
If Rhino.IsCurve(strObject) Then
Rhino.OffsetCurve strObject, Rhino.CurveStartPoint(strObject), 10.0
End If