Offsets a curve by a distance. The offset curve will be added to Rhino.
rhinoscriptsyntax.OffsetCurve ( object_id, direction, distance, normal==None, style=1)
rhinoscript.curve.OffsetCurve ( object_id, direction, distance, normal==None, style=1)
object_id |
Required. String or Guid. The object's identifier. |
||||||||||||
direction |
Required. List of 3 numbers, Point3d or Vector3d that indicates the direction of the offset. |
||||||||||||
distance |
Required. Number. The distance of the offset. |
||||||||||||
normal |
Optional. List of 3 numbers, Point3d or Vector3d identifying the normal of the plane in which the offset will occur. If omitted, the normal of the active construction plane will be used. |
||||||||||||
style |
Optional. Number. The corner style. Of omitted, a sharp corner style is used.
|
List |
A list containing the identifiers of the new objects if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a curve", rs.filter.curve)
if rs.IsCurve(obj):
rs.OffsetCurve( obj, [0,0,0], 1.0 )