NAME
DtGroupGetNormal - Get a normal for the given group and
normal index.
SYNOPSIS
#include <Dt.h>
int DtGroupGetNormal( int shapeID, int groupID, int index, DtVec3f *normal )
DESCRIPTION
DtGroupGetNormal() returns a normal for the group indicated
by the given shapeID, groupID and index. The noraml is
returned via the pointer to the vertex parameter. C
programmers can access the components of the vertex vector
as though it were a simple structure as follows:
typedef struct DtVec3f { float vec[3];};
DtVec3f norm;
x = norm.vec[0];
y = norm.vec[1];
z = norm.vec[2];
DIAGNOSTICS
DtGroupGetNormal() returns one on success and zero on
failure.
FILES
Link with -lDtOMio