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


7.24 data/examples/nurbsor1.dat


/*
 * FILE: nurbsor1.dat
 *
 * a simple Surface Of Revolution
 *
 */

curv1 = NURBCURV(
  (0., 0., 0.5, 1., 1.),
  ((0.,-1.,0.,1), (1.,0.,0.,1), (0.,1.,0.,1))
);

surf1 = NURBSOR( 
  (0.,0.,0.),       /* point on rotation axis */
  (0.,1.,0.),       /* direction of rotation axis */
  360.,             /* rotation angle */
  curv1
);

front1 = FRONT_MATERIAL
(
  (0.05, 0.15, 0.075, 1.0),
  (0.0125, 0.0375, 0.019, 1.0),
  (0.0, 0.0, 0.0, 1.0),
  (0.2, 0.6, 0.3, 1.0),
  0.5
);
back1 = BACK_MATERIAL
(
  (0.3, 0.15, 0.12, 1.0),
  (0.075, 0.0375, 0.03, 1.0),
  (0.0, 0.0, 0.0, 1.0), 
  (0.8, 0.4, 0.3, 1.0),
  0.5
);

SCENEROOT = SCENENODE ( 
  (), 
  ( ATTRIBS(front1,back1) ), 
  (surf1)
);


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