VRML Example: Texture mapped IndexedFaceSet

The application of texture coordinates to an IndexFaceSet can be done in one of two ways. Each vertex can have the same texture coordinate in each face that is coincident at that point, or the vertex can have a different texture coordinate for each face that is coincident. The texCoord field of the IndexFaceSet is used in either case. The first cube the texture mapping is specified with texture coordinates per vertex per face. For the second cube,  we have broken the shape into two smaller shapes in order to get texture mapping.