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