----------------------------------------------------------------------------- */
/* dependencies */
+#include <assert.h>
#include "picointernal.h"
#include "globaldefs.h"
/* get number of vertices */
bufptr = GetWord( bufptr,&numVerts );
+ assert(bufptr);
ptrToVerts = bufptr;
#ifdef DEBUG_PM_MS3D
}
/* get number of groups */
bufptr = GetWord( bufptr,&numGroups );
+ assert(bufptr);
// ptrToGroups = bufptr;
#ifdef DEBUG_PM_MS3D
/* get triangle index */
bufptr = GetWord( bufptr,(int *)&triangleIndex );
+ assert(bufptr);
/* get ptr to triangle data */
triangle = (TMsTriangle *)( ptrToTris + ( sizeof( TMsTriangle ) * triangleIndex ) );
}
/* get number of materials */
bufptr = GetWord( bufptr,&numMaterials );
+ assert(bufptr);
#ifdef DEBUG_PM_MS3D
printf( "NumMaterials: %d\n",numMaterials );