NurbsCurveKnotList

References
Provides access to the knot vector of a NURBS curve.

Properties

Count

#Since v5.0
Total number of knots in this curve.
public int Count { get; }

IsClampedEnd

#Since v5.0
Gets a value indicating whether or not the knot vector is clamped at the end of the curve. Clamped curves are coincident with the first and last control-point. This requires fully multiple knots.
public bool IsClampedEnd { get; }

IsClampedStart

#Since v5.0
Gets a value indicating whether or not the knot vector is clamped at the start of the curve. Clamped curves start at the first control-point. This requires fully multiple knots.
public bool IsClampedStart { get; }

KnotStyle

#Since v7.1
Gets the style of the knot vector.
public KnotStyle KnotStyle { get; }
Explicit

ICollection<double>.IsReadOnly

#
bool ICollection<double>.IsReadOnly

Indexers

this[]

#
Gets or sets the knot vector value at the given index.
public double this[
index
Index of knot to access.
] { get; set; }
The knot value at [index]

Methods

ClampEnd

#Since v5.0
Clamp end knots. Does not modify control point locations.
public bool ClampEnd(
end
Curve end to clamp.
)
true on success, false on failure.

Contains

#Since v6.0
Returns an indication of the presence of a value in the knot list.
public bool Contains(
item
The item.
)
true if present, false otherwise.

CopyTo

#Since v6.0
Copies the list to an array.
public void CopyTo(
array,
The array to copy to.
arrayIndex
The index into copy will begin.
)

CreatePeriodicKnots

#Since v5.0
Compute a clamped, uniform, periodic knot vector based on the current degree and control point count. Does not change values of control vertices.
public bool CreatePeriodicKnots(
knotSpacing
Spacing of subsequent knots.
)
true on success, false on failure.

CreateUniformKnots

#Since v5.0
Compute a clamped, uniform knot vector based on the current degree and control point count. Does not change values of control vertices.
public bool CreateUniformKnots(
knotSpacing
Spacing of subsequent knots.
)
true on success, false on failure.

EnsurePrivateCopy

#Since v5.0
If you want to keep a copy of this class around by holding onto it in a variable after a command completes, call EnsurePrivateCopy to make sure that this class is not tied to the document. You can call this function as many times as you want.
public void EnsurePrivateCopy()

EpsilonEquals

#Since v5.4
Checks that all values in the other list are sequentially equal within epsilon to the values in this list.
public bool EpsilonEquals(
other,
The other list.
epsilon
The epsilon value.
)
True if values are, orderly, equal within epsilon. False otherwise.
EpsilonEquals

IndexOf

#Since v6.0
Returns the first item in the list.
public int IndexOf(
item
The value.
)
The index, or -1 if no index is found.

InsertKnot

#Since v5.0
Inserts a knot and update control point locations. Does not change parameterization or locus of curve.
public bool InsertKnot(
value,
Knot value to insert.
multiplicity
Multiplicity of knot to insert.
)
true on success, false on failure.

InsertKnot

#ExampleSince v5.0
Inserts a knot and update control point locations. Does not change parameterization or locus of curve.
public bool InsertKnot(
value
Knot value to insert.
)
true on success, false on failure.

KnotMultiplicity

#Since v5.0
Get knot multiplicity.
public int KnotMultiplicity(
index
Index of knot to query.
)
The multiplicity (valence) of the knot.

RemoveKnotAt

#Since v6.0
Remove a knot from a curve and adjusts the remaining control points to maintain curve position as closely as possible.
public bool RemoveKnotAt(
t
The parameter on the curve that is closest to the knot to be removed.
)
true if successful, false on failure.

RemoveKnots

#Since v6.0
Remove knots from a curve and adjusts the remaining control points to maintain curve position as closely as possible. The knots from Knots[index0] through Knots[index1 - 1] will be removed.
public bool RemoveKnots(
index0,
The starting knot index, where Degree-1 < index0 < index1 <= Points.Count-1.
index1
The ending knot index, where Degree-1 < index0 < index1 <= Points.Count-1.
)
true if successful, false on failure.

RemoveMultipleKnots

#Since v6.0
Remove multiple knots from this curve.
public int RemoveMultipleKnots(
minimumMultiplicity,
Remove knots with multiplicity > minimumKnotMultiplicity.
maximumMultiplicity,
Remove knots with multiplicity < maximumKnotMultiplicity.
tolerance
When you remove knots, the shape of the curve is changed. If tolerance is RhinoMath.UnsetValue, any amount of change is permitted. If tolerance is >=0, the maximum distance between the input and output curve is restricted to be <= tolerance.
)
number of knots removed on success. 0 if no knots were removed

SuperfluousKnot

#Since v5.0
Computes the knots that are superfluous because they are not used in NURBs evaluation. These make it appear so that the first and last curve spans are different from interior spans.

http://wiki.mcneel.com/developer/onsuperfluousknot

public double SuperfluousKnot(
start
true if the query targets the first knot. Otherwise, the last knot.
)
A component.
Explicit

ICollection<double>.Add

#
void ICollection<double>.Add(
item
)
Explicit

ICollection<double>.Clear

#
void ICollection<double>.Clear()
Explicit

ICollection<double>.Remove

#
Explicit

IEnumerable<double>.GetEnumerator

#
Explicit

IList<double>.Insert

#
void IList<double>.Insert(
index,
item
)
Explicit

IList<double>.RemoveAt

#
void IList<double>.RemoveAt(
index
)
Explicit

IEnumerable.GetEnumerator

#
IEnumerator IEnumerable.GetEnumerator()