Click or drag to resize

CurveCreateTweenCurvesWithSampling Method (Curve, Curve, Int32, Int32)

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.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
public static Curve[] CreateTweenCurvesWithSampling(
	Curve curve0,
	Curve curve1,
	int numCurves,
	int numSamples


Type: Rhino.GeometryCurve
The first, or starting, curve.
Type: Rhino.GeometryCurve
The second, or ending, curve.
Type: SystemInt32
Number of tween curves to create.
Type: SystemInt32
Number of sample points along input curves.

Return Value

Type: Curve
>An array of joint curves. This array can be empty.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Obsolete (compiler warning) in 6.2
See Also