--- ray/src/common/octree.h 1989/02/02 10:34:18 1.1 +++ ray/src/common/octree.h 1991/04/18 12:54:26 1.4 @@ -61,9 +61,15 @@ extern CUBE thescene; /* the main scene */ #define IO_FILES 010 /* object file names */ #define IO_BOUNDS 020 /* octree boundary */ #define IO_ALL (~0) /* everything */ + /* octree format identifier */ +#define OCTFMT "Radiance_octree" /* magic number for octree files */ -#define OCTMAGIC (275+sizeof(OBJECT)) +#define OCTMAGIC (283+sizeof(OBJECT)) /* octree node types */ #define OT_EMPTY 0 #define OT_FULL 1 #define OT_TREE 2 + /* return values for surface functions */ +#define O_MISS 0 /* no intersection */ +#define O_HIT 1 /* intersection */ +#define O_IN 2 /* cube contained entirely */