RhinoCommon API

## CurveCreateTweenCurvesWithSampling Method (Curve, Curve, Int32, Int32, Double) |

Creates curves between two open or closed input curves. Use sample points method to make curves compatible.
This is how the algorithm workd: Divides the two curves into an equal number of points, finds the midpoint between the
corresponding points on the curves and interpolates the tween curve through those points. There is no matching of curves
direction. Caller must match input curves direction before calling the function.

Syntax

public static Curve[] CreateTweenCurvesWithSampling( Curve curve0, Curve curve1, int numCurves, int numSamples, double tolerance )

- curve0
- Type: Rhino.GeometryCurve

The first, or starting, curve. - curve1
- Type: Rhino.GeometryCurve

The second, or ending, curve. - numCurves
- Type: SystemInt32

Number of tween curves to create. - numSamples
- Type: SystemInt32

Number of sample points along input curves. - tolerance
- Type: SystemDouble
[Missing <param name="tolerance"/> documentation for "M:Rhino.Geometry.Curve.CreateTweenCurvesWithSampling(Rhino.Geometry.Curve,Rhino.Geometry.Curve,System.Int32,System.Int32,System.Double)"]

>An array of joint curves. This array can be empty.

Version Information

See Also