M_Rhino_Geometry_Curve_OffsetOnSurface_5 - mcneel/rhinocommon-api-docs GitHub Wiki

Curve.OffsetOnSurface Method (Surface, Double[], Double[], Double)

Offset this curve on a surface. This curve must lie on the surface. This overload allows to specify different offsets for different curve parameters.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public Curve[] OffsetOnSurface(
	Surface surface,
	double[] curveParameters,
	double[] offsetDistances,
	double fittingTolerance
)

VB

Public Function OffsetOnSurface ( 
	surface As Surface,
	curveParameters As Double(),
	offsetDistances As Double(),
	fittingTolerance As Double
) As Curve()

Parameters

 

surface
Type: Rhino.Geometry.Surface
A surface on which to offset.
curveParameters
Type: System.Double[]
Curve parameters corresponding to the offset distances.
offsetDistances
Type: System.Double[]
Distances to offset (+)left, (-)right.
fittingTolerance
Type: System.Double
A fitting tolerance.

Return Value

Type: Curve[]
Offset curves on success, or null on failure.

Exceptions

 

Exception Condition
ArgumentNullException If surface, curveParameters or offsetDistances are null.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Curve Class
OffsetOnSurface Overload
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️