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

CurveOffsetOnSurface 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)
Syntax
public Curve[] OffsetOnSurface(
	Surface surface,
	double[] curveParameters,
	double[] offsetDistances,
	double fittingTolerance
)
Public Function OffsetOnSurface ( 
	surface As Surface,
	curveParameters As Double(),
	offsetDistances As Double(),
	fittingTolerance As Double
) As Curve()

Parameters

surface
Type: Rhino.GeometrySurface
A surface on which to offset.
curveParameters
Type: SystemDouble
Curve parameters corresponding to the offset distances.
offsetDistances
Type: SystemDouble
Distances to offset (+)left, (-)right.
fittingTolerance
Type: SystemDouble
A fitting tolerance.

Return Value

Type: Curve
Offset curves on success, or null on failure.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf surface, curveParameters or offsetDistances are null.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.14
See Also