NurbsSurfacePointList
Provides access to the control points of a NURBS surface.
Inheritance Hierarchy
System.Object
Rhino.Geometry.Collections.NurbsSurfacePointList
Namespace: Rhino.Geometry.Collections
Assembly: RhinoCommon (in RhinoCommon.dll)
Syntax
public sealed class NurbsSurfacePointList : IEnumerable<ControlPoint>, IEnumerable, IEpsilonComparable<NurbsSurfacePointList>
The NurbsSurfacePointList type exposes the following members.
Properties
Name
Description
Public Property
CountU
Gets the number of control points in the U direction of this surface.
Public Property
CountV
Gets the number of control points in the V direction of this surface.
Public Property
PointSize
Returns the control point size, or the number of doubles per control point. For rational curves, PointSize = Surface.Dimension + 1. For non-rational curves, PointSize = Surface.Dimension.
Methods
Name
Description
Public Method
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.
Public Method
EpsilonEquals
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.)
Public Method
GetControlPoint
Gets the control point at the given (u, v) index.
Public Method
GetGrevillePoint
Gets the 2-D Greville point associated with the control point at the given (u, v) index.
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public Method
GetPoint(Int32, Int32, Point3d.)
Gets a world 3-D, or Euclidean, control point at the given (u, v) index. The 4-D representation is (x, y, z, 1.0).
Public Method
GetPoint(Int32, Int32, Point4d.)
Gets a homogeneous control point at the given (u, v) 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
GetWeight
Gets the weight of a control point at the given (u, v) index. Note, if the surface is non-rational, the weight will be 1.0.
Public Method
SetControlPoint(Int32, Int32, ControlPoint)
Sets the control point at the given (u, v) index.
Public Method
SetControlPoint(Int32, Int32, Point3d)
Obsolete.
Sets the control point at the given (u, v) index.
Public Method
SetPoint(Int32, Int32, Point3d)
Sets a world 3-D, or Euclidean, control point at the given (u, v) index. The 4-D representation is (x, y, z, 1.0).
Public Method
SetPoint(Int32, Int32, Point4d)
Sets a homogeneous control point at the given (u, v) 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
SetPoint(Int32, Int32, Point3d, Double)
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
SetPoint(Int32, Int32, Double, Double, Double)
Sets a world 3-D, or Euclidean, control point at the given (u, v) index. The 4-D representation is (x, y, z, 1.0).
Public Method
SetPoint(Int32, Int32, Double, Double, Double, Double)
Sets a homogeneous control point at the given (u, v) 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
SetWeight
Sets the weight of a control point at the given (u, v) index. Note, if the surface 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
UVNDirectionsAt
Calculates the U, V, and N directions of a NURBS surface control point similar to the method used by Rhino’s MoveUVN command.
Public Method
ValidateSpacing
Simple check of distance between adjacent control points