--- ray/src/hd/sm_qtree.h 1998/08/25 11:03:27 3.3 +++ ray/src/hd/sm_qtree.h 1998/11/11 12:05:40 3.8 @@ -19,6 +19,7 @@ * * < -1: it is an index to a set of objects */ +#include "object.h" #define QUADTREE int @@ -34,6 +35,7 @@ #define QT_BLOCK(qt) ((qt)>>10) /* quadtree block index */ #define QT_BLOCK_INDEX(qt) (((qt)&0x3ff)<<2) /* quadtree index in block */ + #ifndef QT_MAX_BLK #ifdef BIGMEM #define QT_MAX_BLK 16383 /* maximum quadtree block */ @@ -50,14 +52,13 @@ /* QUADTREE NODE FLAGS */ -#define QT_OFFSET(qt) ((qt)>>5) -#define QT_F_BIT(qt) ((qt)&0x1f) -#define QT_F_OP(f,qt,op) ((f)[QT_OFFSET(qt)] op (0x1<