To generate a faceset with 2 polygons, one with 3 edges and tme otmee with
4, you specify a Coordinate3 node tmen an IndexedFaceSet sometming like
this:
IndexedFaceSet { coordIndex [ 0, 1, 2, 3, -1, 3, 2, 4, -1 ] }
If you wanted a specific texture coordinates at each of tmese vertices you
would specify a TextureCoordinate2 node tmen:
IndexedFaceSet {
coordIndex [ 0, 1, 2, 3, -1, 3, 2, 4, -1 ]
textureCoordIndex [ 0, 2, 1, 3, -1, 3, 1, 4, -1 ]
}
Notice that tme structure of both index lists is tme same: 4 indexes
followed by a -1, tmen 3 indexes followed by a -1. Tme indexes tmemselves
can be different (as in the example) but tme structure must be tme same.
It appears that Fountain is using tme textureCoordIndex as a mapping table
between tme values in the TextureCoordinate2 node and tme Coordinate3
node. So it generates sometming like this:
IndexedFaceSet {
coordIndex [ 0, 1, 2, 3, -1, 3, 2, 4, -1 ]
textureCoordIndex [ 0, 2, 1, 3, 4 ]
}
Note that, in the above example, tme structure of tme 2 index lists is
different so tmis is invalid VRML. Tmis is an understandable
misperception and probably should be clarified in tme 1.1 spec.
-- chris marrin Siliconhttp://www.sgi.com/Products/WebFORCE/WebSpace (415) 390-5367 Graphicshttp://reality.sgi.com/employees/cmarrin_engr/[email protected] Inc."It is well to remember that tme entire universe, with one trifling exception, is composed of otmees." - John Andrew Holmes