OffsetCurve



Your Ad Here

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

Syntax

Rhino.OffsetCurve (strObject, arrOrigin, dblDistance [, arrNormal [, arrStyle]])

Parameters

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.

0

Sharp.

1

Round.

2

Smooth.

3

Chamfer.

Returns

Array

An array containing the identifiers of the new objects if successful.

Null

If not successful, or on error.

Example

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

Also See

OffsetSurface

Return to Rhino Index


Your Ad Here