Next: 7.34 data/examples/polygon3_3.dat
Up: 7. Source Files
Previous: 7.32 data/examples/polygon3_1.dat
  Contents
  Index
7.33 data/examples/polygon3_2.dat
/*
* FILE: polygon3_2.dat
*
* two polygons with automatic texture coordinate generation
*/
A1 = (0,0,0);
B1 = (10,0,0);
C1 = (10,10,0);
D1 = (0,10,0);
cont1 = ( A1,B1,C1,D1 );
polygon1 = POLYGON3( (A1,B1,D1), (cont1) );
A2 = (3,1,0);
B2 = (9,3,0);
C2 = (5,10,0);
cont2 = ( A2,B2,C2 );
polygon2 = POLYGON3( (A2,B2,C2), (cont2) );
teximg1 = TEXIMAGE2D(
(
((1,0,0,1), (0,1,0,1)),
((0,0,1,1), (1,1,0,1))
)
);
node1 = SCENENODE(
(),
( TRANSFORMS(TRNSF3PT((0,0,8),(1,0,8),(0,1,8))) ),
(polygon1)
);
SCENEROOT = SCENENODE(
(node1),
(
ATTRIBS( teximg1, USETEXIMG(2),
USETEXWRAPX(1), USETEXWRAPY(1),
USETEXMAGTONEAREST(1), USETEXMINTONEAREST(1)
),
LOCAL_ATTR(
TEX2TRANSFORMS(TRNSF3PT((0,0),(4,0),(0,4)),
TRNSF3PT((0.3,0.1),(0.9,0.3),(0.5,1.0)) )
)
),
(polygon2)
);
Next: 7.34 data/examples/polygon3_3.dat
Up: 7. Source Files
Previous: 7.32 data/examples/polygon3_1.dat
  Contents
  Index
Administrator
2002-01-20