M_Rhino_Geometry_Curve_CreateInterpolatedCurve_1 - mcneel/rhinocommon-api-docs GitHub Wiki

Curve.CreateInterpolatedCurve Method (IEnumerable(Point3d), Int32, CurveKnotStyle)

Interpolates a sequence of points. Used by InterpCurve Command This routine works best when degree=3.

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

Syntax

C#

public static Curve CreateInterpolatedCurve(
	IEnumerable<Point3d> points,
	int degree,
	CurveKnotStyle knots
)

VB

Public Shared Function CreateInterpolatedCurve ( 
	points As IEnumerable(Of Point3d),
	degree As Integer,
	knots As CurveKnotStyle
) As Curve

Parameters

 

points
Type: System.Collections.Generic.IEnumerable(Point3d)
Points to interpolate. For periodic curves if the final point is a duplicate of the initial point it is ignored. (Count must be >=2)
degree
Type: System.Int32
The degree of the curve >=1. Degree must be odd.
knots
Type: Rhino.Geometry.CurveKnotStyle
Knot-style to use and specifies if the curve should be periodic.

Return Value

Type: Curve
interpolated curve on success. null on failure.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Curve Class
CreateInterpolatedCurve Overload
Rhino.Geometry Namespace

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