2.5.3.113 Nurbs

The Nurbs function returns a non-uniform rational B-spline (NURBS).

ABNF:

 Nurbs = "NURBS(" val "," val "," val "," val *("," val "," val "," val "," val) ")"

Required Arguments:

Name: knotLast

Type: vDouble

An argument that specifies the last knot.

Name: degree

Type: vSignedInt

An argument that specifies the degree of the B-spline.

Name: xType

Type: vUnsignedInt

An argument that specifies how to interpret the x-coordinates. If xType is zero, the input xN is interpreted as relative coordinates. Otherwise, the input xN is interpreted in the coordinate system of the shape.

Name: yType

Type: vUnsignedInt

An argument that specifies how to interpret the y-coordinates. If yType is zero, the input yN is interpreted as relative coordinates. Otherwise, the input yN is interpreted in the coordinate system of the shape.

Optional Arguments:

Additional x-coordinates, y-coordinates, knots, and weights MUST be specified using additional groups of xN, yN, knotN, and weightN.

Name: xN

Type: vDouble

An argument that specifies a x-coordinate.

Name: yN

Type: vDouble

An argument that specifies a y-coordinate.

Name: knotN

Type: vDouble

An argument that specifies a knot on the B-spline.

Name: weightN

Type: vDouble

An argument that specifies a weight on the B-spline.

Return Value:

Type: PtgNurbs, PtgErr

This function returns a PtgNurbs parse token containing knotLast, degree, xType, yType, xN, yN, knotN, and weightN. If the wrong number of arguments is used, the function returns a PtgErr parse token with a value equal to #VALUE!.