NurbsSurfaceKnotList

NurbsSurfaceKnotList

Provides access to the knot vector of a NURBS surface.

Members

count :int

Gets the total number of knots in this curve.
Type:
  • int

isClampedEnd

isClampedStart

Methods

createPeriodicKnots(knotSpacing) → {bool}

Compute a clamped, uniform, periodic knot vector based on the current degree and control point count. Does not change values of control vertices.
Parameters:
Name Type Description
knotSpacing double Spacing of subsequent knots.
Returns:
true on success, false on failure.
Type
bool

createUniformKnots(knotSpacing) → {bool}

Compute a clamped, uniform knot vector based on the current degree and control point count. Does not change values of control vertices.
Parameters:
Name Type Description
knotSpacing double Spacing of subsequent knots.
Returns:
true on success, false on failure.
Type
bool

get()

...

insertKnot(value, multiplicity) → {bool}

Inserts a knot and update control point locations. Does not change parameterization or locus of curve.
Parameters:
Name Type Description
value double Knot value to insert.
multiplicity int Multiplicity of knot to insert.
Returns:
true on success, false on failure.
Type
bool

knotMultiplicity(index) → {int}

Get knot multiplicity.
Parameters:
Name Type Description
index int Index of knot to query.
Returns:
The multiplicity (valence) of the knot.
Type
int

set()

...

superfluousKnot(start) → {double}

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:
Name Type Description
start bool true if the query targets the first knot. Otherwise, the last knot.
Returns:
A component.
Type
double