NurbsSurfaceKnotList
- class rhino3dm.NurbsSurfaceKnotList
- IsClampedStart
- IsClampedEnd
- __len__()
[todo] add documentation
- __getitem__()
[todo] add documentation
- __setitem__()
[todo] add documentation
- ToList()
[todo] add documentation
- InsertKnot(value, multiplicity)
Inserts a knot and update control point locations. Does not change parameterization or locus of curve.
- Returns:
True on success, False on failure.
- Return type:
bool
- KnotMultiplicity(index)
Get knot multiplicity.
- Parameters:
index (int) – Index of knot to query.
- Returns:
The multiplicity (valence) of the knot.
- Return type:
int
- CreateUniformKnots(knotSpacing)
Compute a clamped, uniform knot vector based on the current degree and control point count. Does not change values of control vertices.
- Parameters:
knotSpacing (float) – Spacing of subsequent knots.
- Returns:
True on success, False on failure.
- Return type:
bool
- CreatePeriodicKnots(knotSpacing)
Compute a clamped, uniform, periodic knot vector based on the current degree and control point count. Does not change values of control vertices.
- Parameters:
knotSpacing (float) – Spacing of subsequent knots.
- Returns:
True on success, False on failure.
- Return type:
bool
- SuperfluousKnot(start)
Computes the knots that are superfluous because they are not used in NURBs evaluation. These make it appear so that the first and last surface spans are different from interior spans. http://wiki.mcneel.com/developer/onsuperfluousknot
- Parameters:
start (bool) – True if the query targets the first knot. Otherwise, the last knot.
- Returns:
A component.
- Return type:
float