next up previous contents index
Next: 7.22 data/examples/nurbcurv2.dat Up: 7. Source Files Previous: 7.20 data/examples/nubmbas2.dat   Contents   Index


7.21 data/examples/nurbcurv1.dat


/*
 * FILE: nurbcurv1.dat
 *
 * creates a curve with clamped, normalized 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( 
  ( 0, 0, 0, 0, 1, 1, 1, 1 ),
  cpts
);
poly1 = POLYLINE_H3(cpts);
SCENEROOT = SCENENODE( (), (ATTRIBS(LINECOLOR((1,0,0,1)))), (curv1,poly1) );


next up previous contents index
Next: 7.22 data/examples/nurbcurv2.dat Up: 7. Source Files Previous: 7.20 data/examples/nubmbas2.dat   Contents   Index
Administrator 2002-01-20