next up previous contents index
Next: 7.33 data/examples/polygon3_2.dat Up: 7. Source Files Previous: 7.31 data/examples/nurbsurf6.dat   Contents   Index


7.32 data/examples/polygon3_1.dat


/*
 * FILE: polygon3_1.dat
 *
 * a polygon with two intersecting contours
 */

A1 = (0.,0.,0.);
B1 = (10.,0.,0.);
C1 = (10.,10.,0.);
D1 = (0.,10.,0.);

A2 = (6.,7.,0);
B2 = (8.,7.,0);
C2 = (8.,17.,0);
D2 = (6.,17.,0);

cont1 = ( A1,B1,C1,D1 );
cont2 = ( A2,B2,C2,D2 );

polygon1 = POLYGON3( (A1,B1,D1),(cont1,cont2) );

teximg1 = TEXIMAGE2D(
  (
    ((1,0,0,1), (0,1,0,1)),
    ((0,0,1,1), (1,1,0,1))
  )
);

SCENEROOT = SCENENODE(
  (),
  (
    ATTRIBS( teximg1, USETEXIMG(2),
             USETEXWRAPX(1), USETEXWRAPY(1),
             USETEXMAGTONEAREST(1), USETEXMINTONEAREST(1)
    )
  ),
  (polygon1)
);


next up previous contents index
Next: 7.33 data/examples/polygon3_2.dat Up: 7. Source Files Previous: 7.31 data/examples/nurbsurf6.dat   Contents   Index
Administrator 2002-01-20