Click or drag to resize

CurveCreateInterpolatedCurve Method (IEnumerablePoint3d, Int32, CurveKnotStyle, Vector3d, Vector3d)

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

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static Curve CreateInterpolatedCurve(
	IEnumerable<Point3d> points,
	int degree,
	CurveKnotStyle knots,
	Vector3d startTangent,
	Vector3d endTangent
)

Parameters

points
Type: System.Collections.GenericIEnumerablePoint3d
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: SystemInt32
The degree of the curve >=1. Degree must be odd.
knots
Type: Rhino.GeometryCurveKnotStyle
Knot-style to use and specifies if the curve should be periodic.
startTangent
Type: Rhino.GeometryVector3d
A starting tangent.
endTangent
Type: Rhino.GeometryVector3d
An ending tangent.

Return Value

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

Rhino for Mac

Supported in: 5.4 WIP

Rhino for Windows

Supported in: 6.1 BETA
See Also