Skip to content

NurbsCurvePointList

Public Class

Provides access to the control points of a NURBS curve.

Inheritance Hierarchy

System.Object
Rhino.Geometry.Collections.NurbsCurvePointList

Namespace: Rhino.Geometry.Collections

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

public class NurbsCurvePointList : IEnumerable<ControlPoint>,
IEnumerable, IEpsilonComparable<NurbsCurvePointList>, IList<ControlPoint>,
ICollection<ControlPoint>

The NurbsCurvePointList type exposes the following members.

Properties

Name

Description


Public Property

Gets the length of the polyline connecting all control points.


Public Property

Gets the number of control points in this curve.


Public Property

Gets or sets the control point location at the given index.


Public Property

Returns the control point size, or the number of doubles per control point. For rational curves, PointSize = Curve.Dimension + 1. For non-rational curves, PointSize = Curve.Dimension.


Methods

Name

Description


Public Method
ChangeEndWeights

Use a combination of scaling and reparameterization to change the end weights to the specified values.


Public Method

Determines if this list contains an item.


Public Method

Constructs a polyline through all the control points. Note that periodic curves generate a closed polyline with fewer points than control-points.


Public Method

Copied the list to an array.


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

Check that all values in other are within epsilon of the values in this


Public Method

Equals

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

(Inherited from Object.)


Protected Method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

(Inherited from Object.)


Public Method

GetHashCode

Serves as the default hash function.

(Inherited from Object.)


Public Method

Gets a world 3-D, or Euclidean, control point at the given index. The 4-D representation is (x, y, z, 1.0).


Public Method
GetPoint(Int32, Point4d.)

Gets a homogeneous control point at the given index, where the 4-D representation is (x, y, z, w). The world 3-D, or Euclidean, representation is (x/w, y/w, z/w).


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Public Method

Gets the weight of a control point at the given index. Note, if the curve is non-rational, the weight will be 1.0.


Public Method

Gets the index of a control point, or -1.


Public Method

Converts the curve to a Non-rational NURBS curve. Non-rational curves have unweighted control points.


Public Method

Converts the curve to a Rational NURBS curve. Rational NURBS curves have weighted control points.


Protected Method

MemberwiseClone

Creates a shallow copy of the current Object.

(Inherited from Object.)


Public Method

Sets a world 3-D, or Euclidean, control point at the given index. The 4-D representation is (x, y, z, 1.0).


Public Method
SetPoint(Int32, Point4d)

Sets a homogeneous control point at the given index, where the 4-D representation is (x, y, z, w). The world 3-D, or Euclidean, representation is (x/w, y/w, z/w).


Public Method

Sets a world 3-D, or Euclidean, control point and weight at a given index. The 4-D representation is (x*w, y*w, z*w, w).


Public Method

Sets a world 3-D, or Euclidean, control point at the given index. The 4-D representation is (x, y, z, 1.0).


Public Method
SetPoint(Int32, Double, Double, Double, Double)

Sets a homogeneous control point at the given index, where the 4-D representation is (x, y, z, w). The world 3-D, or Euclidean, representation is (x/w, y/w, z/w).


Public Method

Sets the weight of a control point at the given index Note, if the curve is non-rational, it will be converted to rational.


Public Method

ToString

Returns a string that represents the current object.

(Inherited from Object.)


Public Method

Calculates the U, V, and N directions of a NURBS curve control point similar to the method used by Rhino’s MoveUVN command.


Public Method

Simple check of distance between adjacent control points