NAME
DtGroupGetNormals - Get a list of normals for the given
group.
SYNOPSIS
#include <Dt.h>
int DtGroupGetNormals( int shapeID, int groupID, int *count, DtVec3f **normals )
DESCRIPTION
DtGroupGetNormals() returns a normal list for the group
indicated by the given shapeID and groupID. The number of
normals is returned in count. A pointer to a list of the
normals is placed in the variable pointed to by normals. The
array returned by DtGroupGetNormals() is not an internal
array, and must be freed by the calling function. It may be
modified, but will not change data stored in the model. C
programmers can access the components of the normal array as
though it were a simple structure as follows:
typedef struct DtVec3f { float vec[3];};
DtVec3f *norms;
DtGroupGetNormals( groupID, DtVec3f &norms );
/* The first normal */
x = norms[0].vec[0];
y = norms[0].vec[1];
z = norms[0].vec[2];
DIAGNOSTICS
DtGroupGetNormals() returns one on success and zero on
failure.
FILES
Link with -lDtOMio