Creates a new NURBS curve in the document.
FUNCTION CreateNurbsCurve(
firstX,firstY,firstZ : REAL;
byCtrlPts : BOOLEAN;
degree : INTEGER): HANDLE;def vs.CreateNurbsCurve(first, byCtrlPts, degree):
return HANDLE| Name | Type | Description |
|---|---|---|
| first | REAL | Coordinates of the first point in the curve definiton. |
| byCtrlPts | BOOLEAN | Create curve by control points (not interpolation). |
| degree | INTEGER | The degree of the NURBS curve. |
Creates a NURBS curve with a single fit or control point, if it succeeds, return nil if it fails.
(_c_, 2010.12.26) Large [http://www.cs.mtu.edu/~shene/COURSES/cs3621/NOTES/ introduction to NURBS] by C.-K. Shene (MTU), including great many images.
PROCEDURE NewNurbsCurve;
VAR
nC :HANDLE;
BEGIN
nC := CreateNurbsCurve(0, 0, 0, true, 2);
AddVertex3D(nC, 1, 1, 0);
AddVertex3D(nC, 2, 0, 0);
END;
RUN(NewNurbsCurve);def NewNurbsCurve():
nC = vs.CreateNurbsCurve(0, 0, 0, True, 2)
vs.AddVertex3D(nC, 1, 1, 0)
vs.AddVertex3D(nC, 2, 0, 0)
NewNurbsCurve()Availability: from VectorWorks 9.0