NurbsSurfacePointList

References
Provides access to the control points of a NURBS surface.

Properties

CountU

#Since v5.0
Gets the number of control points in the U direction of this surface.
public int CountU { get; }

CountV

#Since v5.0
Gets the number of control points in the V direction of this surface.
public int CountV { get; }

PointSize

#Since v6.9
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.
public int PointSize { get; }

Methods

EnsurePrivateCopy

#Since v5.0
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()

EpsilonEquals

#Since v5.4
Check that all values in other are within epsilon of the values in this
public bool EpsilonEquals()
EpsilonEquals

GetControlPoint

#Since v5.0
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.
)
The control point at the given (u, v) index.

GetGrevillePoint

#Since v5.0
Gets the 2-D Greville point associated with the control point at the given (u, v) index.
public Point2d GetGrevillePoint(
u,
Index of control point in the surface U direction.
v
Index of control point in the surface V direction.
)
A Surface UV coordinate on success, Point2d.Unset on failure.

GetPoint

#Since v6.0
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 bool GetPoint(
u,
Index of control point in the surface U direction.
v,
Index of control point in the surface V direction.
out Point3d
point
Coordinate of control point.
)
true on success, false on failure.

GetPoint

#Since v6.0
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 bool GetPoint(
u,
Index of control point in the surface U direction.
v,
Index of control point in the surface V direction.
out Point4d
point
Coordinate and weight of control point.
)
Remarks: For expert use only. If you do not understand homogeneous coordinates, then use the override that returns world 3-D, or Euclidean, coordinates.
true on success, false on failure.

GetWeight

#Since v6.0
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 double GetWeight(
u,
Index of control-point along surface U direction.
v
Index of control-point along surface V direction.
)
The control point weight if successful, Rhino.Math.UnsetValue otherwise.

SetControlPoint

#Since v5.0
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.
)
true on success, false on failure.

SetControlPoint

#Since v5.0 Obsolete v6.0
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 location to set (weight is assumed to be 1.0).
)
obsoleteUse one of the SetPoint() overrides
true on success, false on failure.

SetPoint

#Since v6.0
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 bool SetPoint(
u,
Index of control point in the surface U direction.
v,
Index of control point in the surface V direction.
x,
X coordinate of control point.
y,
Y coordinate of control point.
z,
Z coordinate of control point.
weight
Weight of control point.
)
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.
true on success, false on failure.

SetPoint

#Since v6.0
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 bool SetPoint(
u,
Index of control point in the surface U direction.
v,
Index of control point in the surface V direction.
x,
X coordinate of control point.
y,
Y coordinate of control point.
z
Z coordinate of control point.
)
true on success, false on failure.

SetPoint

#Since v6.0
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 bool SetPoint(
u,
Index of control point in the surface U direction.
v,
Index of control point in the surface V direction.
point,
Coordinates of the control point.
weight
Weight of control point.
)
true on success, false on failure.

SetPoint

#Since v6.0
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 bool SetPoint(
u,
Index of control point in the surface U direction.
v,
Index of control point in the surface V direction.
point
Coordinate of control point.
)
true on success, false on failure.

SetPoint

#Since v6.0
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 bool SetPoint(
u,
Index of control point in the surface U direction.
v,
Index of control point in the surface V direction.
point
Coordinate and weight of control point.
)
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.
true on success, false on failure.

SetWeight

#Since v6.0
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 bool SetWeight(
u,
Index of control-point along surface U direction.
v,
Index of control-point along surface V direction.
weight
The control point weight.
)
true if successful, false otherwise.
Explicit

IEnumerable.GetEnumerator

#
IEnumerator IEnumerable.GetEnumerator()

UVNDirectionsAt

#Since v7.0
Calculates the U, V, and N directions of a NURBS surface control point similar to the method used by Rhino's MoveUVN command.
public bool UVNDirectionsAt(
u,
Index of control-point along surface U direction.
v,
Index of control-point along surface V direction.
uDir,
The U direction.
vDir,
The V direction.
nDir
The N direction.
)
true if successful, false otherwise.

ValidateSpacing

#Since v6.0
Simple check of distance between adjacent control points
public bool ValidateSpacing(
closeTolerance,
stackTolerance,
out IndexPair[]
closeIndices,
out IndexPair[]
stackedIndices
)