RhinoCommon API
CurveCreateMeanCurve Method (Curve, Curve, Double) |
Constructs a mean, or average, curve from two curves.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

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: CurveThe average curve, or null on error.

Exception | Condition |
---|---|
ArgumentNullException | If curveA or curveB are null. |

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.8