next up previous contents index
Next: 7.23 data/examples/nurbcurv3.dat Up: 7. Source Files Previous: 7.21 data/examples/nurbcurv1.dat   Contents   Index


7.22 data/examples/nurbcurv2.dat


/*
 * FILE: nurbcurv2.dat
 *
 * creates a curve with an open knot vector
 *
 */

cpts = ((0,0,0,1), (0.25, 0.3, 0, 1),  (0.75, 0.3, 0, 1),  (1,0,0,1));
curv1 = NURBCURV( 
  ( 1, 2, 3, 4, 5, 6, 7, 8 ),
  cpts
);
poly1 = POLYLINE_H3(cpts);
SCENEROOT = SCENENODE( (), (ATTRIBS(LINECOLOR((1,0,0,1)))), (curv1,poly1) );


next up previous contents index
Next: 7.23 data/examples/nurbcurv3.dat Up: 7. Source Files Previous: 7.21 data/examples/nurbcurv1.dat   Contents   Index
Administrator 2002-01-20