Interface to Alias polyset STs and Normals.
#include <AlVertexDataList.h>
class AlVertexDataList
AlVertexDataList( AlPolyset *pset );
~AlVertexDataList();
int STListSize();
int normalListSize();
boolean STByIndex( int index, float &s, float &t );
boolean normalByIndex( int index, float &x, float &y, float &z );
int vertexNormalIndex( int polygon, int vertex );
int vertexSTIndex( int polygon, int vertex );
AlVertexDataList is an optional additional interface to Alias's per-vertex-per-poly ST and Normal data. It provides an output only format for this data similar to that used by Wavefront's .obj file format.
The user can use this class to obtain a list of STs and Normals used by the polyset, and also may find out which normals or STs are used by each polygon in the polyset as an index into this shared table.
Note that this data is read-only, and is NOT automatically updated if the source polyset is changed.
Creates an AlVertexData item that may be used to easily extract vertex ST and Normal sharing information from a polyset. Note that updates to the passed polyset will NOT be reflected in the AlVertexDataList structure, as this item works with a "snapshot" of the polyset taken at creation time.
Returns the number of ST pairs in the ST data list.
-1 is returned if the VertexDataList is invalid.
Returns the number of normals in the normal data list.
-1 is returned if the VertexDataList is invalid.
Retrieves the ST coordinates for a given index
index - the index of the vertex
s,t - the variables to return the values in
FALSE - the method did not work
Retrieves the normal for a given index.
index - the index of the vertex
FALSE - the method did not work
Retrieves the index of the normal for a vertex in a polygon.
polygon - index of the polygon
-1 if the polygon or vertex are out of range
Retrieves the index of the ST pair for a vertex in a polygon.
polygon - index of the polygon
-1 if the polygon or vertex are out of range