Table of Contents

Property Knots

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

Knots

Gets or sets the knots (groups 40), a new list on each call; their count (72) with them.

public IReadOnlyList<double> Knots { get; set; }

Property Value

IReadOnlyList<double>

Set, as many as the control points and the degree and one, none going down: a cubic of 5 points has 9. The points are not changed with them; SetNurbsData(int, bool, bool, bool, IEnumerable<GeoPoint3>, IEnumerable<double>, IEnumerable<double>) sets knots of another count with their points. A spline of fit points has its fit data taken out with them, as SetControlPointAt(int, GeoPoint3).

Exceptions

ArgumentNullException

Thrown when the knots set are null.

ArgumentOutOfRangeException

Thrown when a knot set is not finite.

ArgumentException

Thrown when their count disagrees with the control points and the degree, or a knot is below the one before it, which would leave the spline no spline.

InvalidOperationException

Thrown when set on a spline that is erased.