OffsetCurve

Offsets a curve by a distance. The offset curve will be added to Rhino.

Syntax

rhinoscriptsyntax.OffsetCurve ( object_id, direction, distance, normal==None, style=1)

rhinoscript.curve.OffsetCurve ( object_id, direction, distance, normal==None, style=1)

Parameters

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.

Value

Description

0

None

1

Sharp (Default)

2

Round

3

Smooth

4

Chamfer

Returns

List

A list containing the identifiers of the new objects if successful.

None

If not successful, or on error.

Example

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 )

Also See

OffsetCurveOnSurface

OffsetSurface