#VRML V2.0 utf8 #lit.wrl Sebastien Marnier 02/98 Group { children [ Transform { translation 0 0 0 children [ Shape { appearance Appearance { #texture bois 100x100 texture ImageTexture { url ["bois.jpg"] } } geometry IndexedFaceSet { #parties en bois coord Coordinate { #on defini les faces point [ 0 0 0,2 0 0,2 0.5 0,0 0.5 0, 0 1.5 0,2 1.5 0,2 1.75 0,0 1.75 0, 0 2.5 0,-1 2.5 0,-1 0 0, 0 2.5 -1,-1 2.5 -1,-1 0 -1,0 0 -1, 2 0 -1,2 1.75 -1,0 1.5 -1,2 1.5 -1 ] } texCoord TextureCoordinate { #on decoupe la texture point [ #pour la faire correspondre 0,0 2,0 2,0.5 0,0.5 #a la forme des faces 0,0 2,0 2,0.25 0,0.25 0,0 2,0 2,1 0,1 0,0 1,0 1,2.5 0,2.5 0,0 1,0 1,1 0,1 0,0 1,0 1,1.75 0,1.75 ] } texCoordIndex [ #dessins des faces 0,1,2,3,-1, 4,5,6,7,-1, 8,9,10,11,-1, 12,13,14,15,-1, 12,13,14,15,-1, 16,17,18,19,-1, 12,13,14,15,-1, 20,21,22,23,-1, 20,21,22,23,-1, ] solid TRUE coordIndex [ #plaquage des textures 0,1,2,3,-1, 4,5,6,7,-1, 17,18,5,4,-1, 10,0,8,9,-1, 13,10,9,12,-1, 9,8,11,12,-1, 0,14,11,8,-1, 15,1,6,16,-1, 1,15,16,6,-1 ] } } Shape { appearance Appearance { #matelas blanc material Material { diffuseColor 1 1 1 } } geometry IndexedFaceSet { coord Coordinate { point [ 0.25 0.65 0,2 0.65 0,2 0.65 -1,0.25 0.65 -1,0 0.5 0,2 0.5 0, 0.25 1.9 0,2 1.9 0,2 1.9 -1,0.25 1.9 -1,0 1.75 0,2 1.75 0,2 1.75 -1, 0 0.8 -1,0 0.8 0,0 2.05 -1, 0 2.05 0 ] } coordIndex [ 0,1,2,3,-1, 4,5,1,0,-1, 4,0,14,-1, 0,3,13,14,-1, 6,7,8,9,-1, 10,11,7,6,-1, 11,12,8,7,-1, 10,6,16,-1, 6,9,15,16,-1 ] } } ] } ] }