NurbsSurfaceKnotList
Referencespublic sealed class NurbsSurfaceKnotList : IEnumerable<double>, IEpsilonComparable<NurbsSurfaceKnotList>
Provides access to the knot vector of a NURBS surface.
Properties
Indexers
Methods
Compute a clamped, uniform, periodic knot vector based on the current degree and control point count. Does not change values of control vertices.
Returns: true on success, false on failure.
Compute a clamped, uniform knot vector based on the current degree and control point count. Does not change values of control vertices.
Returns: true on success, false on failure.
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()
Inserts a knot and update control point locations. Does not change parameterization or locus of curve.
Returns: true on success, false on failure.
Inserts a knot and update control point locations. Does not change parameterization or locus of curve.
Returns: true on success, false on failure.
Get knot multiplicity.
Returns: The multiplicity (valence) of the knot.
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.
Returns: true if successful, false on failure.
Remove knots from the surface and adjusts the remaining control points to maintain surface position as closely as possible.
Returns: true if successful, false on failure.
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.
Returns: number of knots removed on success. 0 if no knots were removed
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.
Returns: A component.