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.
Parameters:
| knotSpacing (double) | Spacing of subsequent knots. |
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.
Parameters:
| knotSpacing (double) | Spacing of subsequent knots. |
Returns: true on success, false on failure.
public void EnsurePrivateCopy()
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.
Check that all values in other are within epsilon of the values in this
Parameters:
| other (NurbsSurfaceKnotList) | |
| epsilon (double) |
Implements: EpsilonEquals
Inserts a knot and update control point locations. Does not change parameterization or locus of curve.
Inserts a knot and update control point locations. Does not change parameterization or locus of curve.
Parameters:
| value (double) | Knot value to insert. |
Returns: true on success, false on failure.
Get knot multiplicity.
Parameters:
| index (int) | Index of knot to query. |
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.
Remove knots from the surface and adjusts the remaining control points to maintain surface position as closely as possible.
Remove multiple knots from this surface
Parameters:
| minimumMultiplicity (int) | Remove knots with multiplicity > minimumKnotMultiplicity |
| maximumMultiplicity (int) | Remove knots with multiplicity < maximumKnotMultiplicity |
| tolerance (double) | 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.
http://wiki.mcneel.com/developer/onsuperfluousknot
Parameters:
| start (bool) | true if the query targets the first knot. Otherwise, the last knot. |
Returns: A component.