39 |
|
#ifdef SMLMEM |
40 |
|
#define MAXOBLK 4095 /* maximum octree block */ |
41 |
|
#else |
42 |
< |
#define MAXOBLK 32767 /* maximum octree block */ |
42 |
> |
#define MAXOBLK 262143 /* maximum octree block */ |
43 |
|
#endif |
44 |
|
#endif |
45 |
|
|
53 |
|
*/ |
54 |
|
|
55 |
|
typedef struct { |
56 |
– |
OCTREE cutree; /* the octree for this cube */ |
56 |
|
FVECT cuorg; /* the cube origin */ |
57 |
|
double cusize; /* the cube size */ |
58 |
+ |
OCTREE cutree; /* the octree for this cube */ |
59 |
|
} CUBE; |
60 |
|
|
61 |
|
extern CUBE thescene; /* the main scene */ |
88 |
|
extern void octdone(void); |
89 |
|
extern OCTREE combine(OCTREE ot); |
90 |
|
extern void culocate(CUBE *cu, FVECT pt); |
91 |
– |
extern void cucopy(CUBE *cu1, CUBE *cu2); |
91 |
|
extern int incube(CUBE *cu, FVECT pt); |
92 |
|
|
93 |
|
extern int readoct(char *fname, int load, CUBE *scene, char *ofn[]); |