NurbsSurfacePointList
Referencespublic sealed class NurbsSurfacePointList : IEnumerable<ControlPoint>, IEpsilonComparable<NurbsSurfacePointList>
Provides access to the control points of a NURBS surface.
Properties
Gets the number of control points in the U direction of this surface.
Gets the number of control points in the V direction of this surface.
Methods
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()
Gets the control point at the given (u, v) index.
public ControlPoint GetControlPoint()
u,
Index of control point in the surface U direction.
v
Index of control point in the surface V direction.
Returns: The control point at the given (u, v) index.
Gets the 2-D Greville point associated with the control point at the given (u, v) index.
Returns: A Surface UV coordinate on success, Point2d.Unset on failure.
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).
Returns: true on success, false on failure.
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).
Remarks: For expert use only. If you do not understand homogeneous coordinates, then use the override that returns world 3-D, or Euclidean, coordinates.
Returns: true on success, false on failure.
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.
Returns: The control point weight if successful, Rhino.Math.UnsetValue otherwise.
Sets the control point at the given (u, v) index.
public bool SetControlPoint()
u,
Index of control point in the surface U direction.
v,
Index of control point in the surface V direction.
cp
The control point to set.
Returns: true on success, false on failure.
Sets the control point at the given (u, v) index.
obsoleteUse one of the SetPoint() overrides
Returns: true on success, false on failure.
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).
Remarks: For expert use only. If you do not understand homogeneous coordinates, then use an override that accepts world 3-D, or Euclidean, coordinates as input.
Returns: true on success, false on failure.
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).
Returns: true on success, false on failure.
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).
Returns: true on success, false on failure.
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).
Returns: true on success, false on failure.
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).
Remarks: For expert use only. If you do not understand homogeneous coordinates, then use an override that accepts world 3-D, or Euclidean, coordinates as input.
Returns: true on success, false on failure.
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.
Returns: true if successful, false otherwise.
Calculates the U, V, and N directions of a NURBS surface control point similar to the method used by Rhino's MoveUVN command.
Returns: true if successful, false otherwise.