Skip to content

NurbsCurveKnotList

Public Class

Provides access to the knot vector of a NURBS curve.

Inheritance Hierarchy

System.Object
Rhino.Geometry.Collections.NurbsCurveKnotList

Namespace: Rhino.Geometry.Collections

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

public sealed class NurbsCurveKnotList : IEnumerable<double>,
IEnumerable, IEpsilonComparable<NurbsCurveKnotList>, IList<double>,
ICollection<double>

The NurbsCurveKnotList type exposes the following members.

Properties

Name

Description


Public Property

Total number of knots in this curve.


Public Property

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 Property

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 Property

Gets or sets the knot vector value at the given index.


Public Property

Gets the style of the knot vector.


Methods

Name

Description


Public Method

Clamp end knots. Does not modify control point locations.


Public Method

Returns an indication of the presence of a value in the knot list.


Public Method

Copies the list to an array.


Public Method

Compute a clamped, uniform, periodic knot vector based on the current degree and control point count. Does not change values of control vertices.


Public Method

Compute a clamped, uniform knot vector based on the current degree and control point count. Does not change values of control vertices.


Public Method

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 Method

Checks that all values in the other list are sequentially equal within epsilon to the values in this list.


Public Method

Equals

Determines whether the specified object is equal to the current object.

(Inherited from Object.)


Public Method

GetHashCode

Serves as the default hash function.

(Inherited from Object.)


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Public Method

Returns the first item in the list.


Public Method
Code Example

Inserts a knot and update control point locations. Does not change parameterization or locus of curve.


Public Method

Inserts a knot and update control point locations. Does not change parameterization or locus of curve.


Public Method

Get knot multiplicity.


Public Method

Remove a knot from a curve and adjusts the remaining control points to maintain curve position as closely as possible.


Public Method

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 Method

Remove multiple knots from this curve.


Public Method

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 Method

ToString

Returns a string that represents the current object.

(Inherited from Object.)