M_Rhino_Geometry_Curve_CreateTweenCurvesWithSampling_1 - mcneel/rhinocommon-api-docs GitHub Wiki

Curve.CreateTweenCurvesWithSampling 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.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

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

VB

Public Shared Function CreateTweenCurvesWithSampling ( 
	curve0 As Curve,
	curve1 As Curve,
	numCurves As Integer,
	numSamples As Integer,
	tolerance As Double
) As Curve()

Parameters

 

curve0
Type: Rhino.Geometry.Curve
The first, or starting, curve.
curve1
Type: Rhino.Geometry.Curve
The second, or ending, curve.
numCurves
Type: System.Int32
Number of tween curves to create.
numSamples
Type: System.Int32
Number of sample points along input curves.
tolerance
Type: System.Double
[Missing documentation for "M:Rhino.Geometry.Curve.CreateTweenCurvesWithSampling(Rhino.Geometry.Curve,Rhino.Geometry.Curve,System.Int32,System.Int32,System.Double)"]

Return Value

Type: Curve[]
>An array of joint curves. This array can be empty.

Version Information

Supported in: 6.0.16224.21491

See Also

Reference

Curve Class
CreateTweenCurvesWithSampling Overload
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️