Curve.CreateMeanCurve Method (Curve, Curve, Double)

CurveCreateMeanCurve Method (Curve, Curve, Double)

Constructs a mean, or average, curve from two curves.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static Curve CreateMeanCurve(
	Curve curveA,
	Curve curveB,
	double angleToleranceRadians
)
Public Shared Function CreateMeanCurve ( 
	curveA As Curve,
	curveB As Curve,
	angleToleranceRadians As Double
) As Curve

Parameters

curveA
Type: Rhino.GeometryCurve
A first curve.
curveB
Type: Rhino.GeometryCurve
A second curve.
angleToleranceRadians
Type: SystemDouble
The angle tolerance, in radians, used to match kinks between curves. If you are unsure how to set this parameter, then either use the document's angle tolerance RhinoDoc.AngleToleranceRadians, or the default value (RhinoMath.UnsetValue)

Return Value

Type: Curve
The average curve, or null on error.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf curveA or curveB are null.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also