Sets the specified knot in a NURBS curve or surface.
For NURBS curves, index1 corresponds to a segment of the curve, and index2 corresponds to the knot in the segment.
For NURBS surfaces, index1 corresponds to the u- or v-direction of the surface and index2 corresponds to the knot.
The index is zero based (0 to number of knots - 1).
PROCEDURE NurbsSetKnot(
objectHd : HANDLE;
index1 : LONGINT;
index2 : LONGINT;
knot : REAL);def vs.NurbsSetKnot(objectHd, index1, index2, knot):
return None| Name | Type | Description |
|---|---|---|
| objectHd | HANDLE | Handle to NURBS curve or surface. |
| index1 | LONGINT | Segment of curve to be queried (NURBS curve), or direction (NURBS surface). |
| index2 | LONGINT | Index of segment or direction knot. |
| knot | REAL | Knot value. |
this function will work for both nurbs curves and nurbs surfaces
Availability: from VectorWorks9.0