#VRML V2.0 utf8 #
##ex-indexedfaceset.wrl # example of IndexedFaceSet geometry # Camera Viewpoint { position 0 0 8 # orientation 1 1 1 -0.6 fieldOfView 0.785398 } # Illumination PointLight{ location 0 0 10 } Transform { rotation 0 0 1 0 children [ Shape { geometry IndexedFaceSet { ccw FALSE # normal following the opposite direction # of the right hand rule (see coordIndex # order under); so pointing to the viewer convex FALSE solid FALSE coordIndex [1, 0, 2, -1, 2, 3, 4, -1] # 2 faces coord Coordinate { point [ 0 0 0, 1 0 0, .5 .5 0, 0 1 0.5, 1 1 0.5] } colorPerVertex FALSE # signalizes we use one color per face color Color { color [ 1 0 0, 0 1 0 ] } } } ] } #