NAME
DtIndexCount - Determines the number of vertices in a given
polygon, line or list of points.
SYNOPSIS
#include <Dt.h>
int DtIndexCount( long *indices )
DESCRIPTION
DtIndexCount() returns the number of vertices in a given
face, line or list or points, passed to this function via
the pointer to indices.
For example, if
1 2 3 -1 4 5 6 7 -1
is stored in the indices parameter, and you want to
determine the number of vertices in each face, this function
should be executed as follows:
index = 0;
v1Cnt = DtIndexCount( &indices[ index ] )
index += v1Cnt + 1;
v2Cnt = DtIndexCount( &indices[ index ] );
The resulting value of v1Cnt is 3 and v2Cnt is 4.
SEE ALSO
DtFaceCount(3W)
FILES
Link with -lDtOMio