NurbsSurfaceKnotList

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

Properties

ClampedAtEnd

#Since v5.0
Determines if a knot vector is clamped.
public bool ClampedAtEnd { get; }

ClampedAtStart

#Since v5.0
Determines if a knot vector is clamped.
public bool ClampedAtStart { get; }

Count

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

KnotStyle

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

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

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
Check that all values in other are within epsilon of the values in this
public bool EpsilonEquals()
EpsilonEquals

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

#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.
)
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.

RemoveKnots

#Since v6.0
Remove knots from the knot vector and adjusts the remaining control points to maintain surface 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.

RemoveKnotsAt

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

RemoveMultipleKnots

#Since v6.0
Remove multiple knots from this surface
public int RemoveMultipleKnots(
minimumMultiplicity,
Remove knots with multiplicity > minimumKnotMultiplicity
maximumMultiplicity,
Remove knots with multiplicity < maximumKnotMultiplicity
tolerance
When you remove knots, the shape of the surface 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 surface 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 surface 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

IEnumerable<double>.GetEnumerator

#
Explicit

IEnumerable.GetEnumerator

#
IEnumerator IEnumerable.GetEnumerator()