/* * 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) );