next up previous contents index
Next: 7.26 data/examples/nurbsurf1.dat Up: 7. Source Files Previous: 7.24 data/examples/nurbsor1.dat   Contents   Index


7.25 data/examples/nurbsurf_bilinear1.dat


/*
 * FILE: nurbsurf_bilinear1.dat
 *
 * a bilinear nurbs surface with a 2*2 texture
 *
 */

surf1 = NURBSURF
( 
  (0., 0., 1., 1.),
  (0., 0., 1., 1.),
  (
    ((0., 0., 0., 1.), (10., 0., 10., 1.)),
    ((0., 10., 10., 1.), (10., 10., 0., 1.))
  )
);
teximg1 = TEXIMAGE2D(
  (
    ((1.0,0.0,0.0,0.4), (0.0,1.0,0.0,0.4)),
    ((0.0,0.0,1.0,0.4), (1.0,1.0,0.0,0.4))
  )
);
SCENEROOT = SCENENODE ( 
  (), 
  ( ATTRIBS(teximg1,USETEXIMG(2),USEUVTEXCS(1),USETEXMAGTONEAREST(1),
            USETEXMINTONEAREST(1),USETEXWRAPX(1),USETEXWRAPY(1),
            TEX2TRANSFORMS(TRNSF3PT((0,0,0),(8.0,0,0),(0,8.0,0)))
           )
  ), 
  (surf1)
);


next up previous contents index
Next: 7.26 data/examples/nurbsurf1.dat Up: 7. Source Files Previous: 7.24 data/examples/nurbsor1.dat   Contents   Index
Administrator 2002-01-20