surface derived from ygGeometry

Description: a tri-strip surface of variable size

notes:
Category: Geometry
Author: Alex Hill
Revision: 11/01/02

    Messages
vertices integer, [integer] determine the number of vertices
color four floats set the surface color
file string set the surface texture
texture string set the surface texture (deprecated)
    Comments

constructor surface

destructor ~surface

method reset

1 reset color to opaque white
2 reset vertices to zero
3 reset texture file name
4 remove any existing child geode

method message

1 determine the number of vertices
2 set the surface color
3 set the surface texture
4 set the surface texture (deprecated)

method createGeometry

1 allocate vertex, normal, color, and texture coordinate arrays
2 set up vertex, normal, color, and texture corrdinate values
3 create geoset
4 set up indexing
5 add array attributes to geoset
6 create geostate
6.1 get number of image components
6.2 if alpha channel then set transparency
7 create geode

method setColor

method setTexture

0.1 get number of image components
0.2 if alpha channel then set transparency