surface derived from ygGeometry Example Source Header

Description: a tri-strip surface of variable size

notes:
Category: Geometry
Author: Alex Hill
11/01/02
02/01/06 Alex Hill - changed logic to create a 2x2 surface by default
Revision: 07/01/06 Alex Hill - added functionality to create a parent ygTransform when necessary

    Messages
vertices integer, [integer] determine the number of vertices
file file set the surface texture
texture file set the surface texture (deprecated)
position create a parent ygTransform and pass the message
orientation create a parent ygTransform and pass the message
size create a parent ygTransform and pass the message
updateInterval create a parent ygTransform and pass the message
reliableKey create a parent ygTransform and pass the message
    Comments

constructor surface

1 create geode

destructor ~surface

method reset

1 reset number of vertices to 2
2 reset texture file name

method message

1 determine the number of vertices
2 set the surface texture
3 set the surface texture (deprecated)
4 create a parent ygTransform and pass the message

method createGeometry

1 if geode has been created
1.0.1 delete gset
1.0.1 create geoset
1.0.2 create geostate
1.1 allocate vertex, normal, color, and texture coordinate arrays
1.2 set up vertex, normal, color, and texture corrdinate values
1.3 set up indexing
1.4 add array attributes to geoset

method setTexture

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

method createTransform