Specifying texture coordinates
Texture coordinates define a 2D shape atop the texture image
-
A "texture cookie cutter"
-
There must be one ST pair for each shape coordinate
Give texture coordinates to GeometryArray, and
texture coordinate indices to IndexedGeometryArray
Methods on GeometryArray set texture coordinates (GeometryArray class methods)
void setTextureCoordinates( int index, * texCoord )
Method variants accept float, Point2f, and Point3f
Methods on IndexedGeometryArray set texture coordinate indices
void setTextureCoordinateIndices( int index, int[] value )
A 3D Shape with vertices
A 2D Shape with other vertices as an extract of the texture
A matching between the to set of vertices