| 9 |
|
*/ |
| 10 |
|
|
| 11 |
|
#include "standard.h" |
| 12 |
– |
#include "octree.h" |
| 12 |
|
#include "object.h" |
| 13 |
|
#include "otypes.h" |
| 14 |
|
#include "face.h" |
| 15 |
|
#include "cone.h" |
| 16 |
+ |
#include "instance.h" |
| 17 |
|
|
| 18 |
|
|
| 19 |
|
int |
| 34 |
|
case OBJ_INSTANCE: /* octree instance */ |
| 35 |
|
getinstance(op, IO_ALL); |
| 36 |
|
return(1); |
| 37 |
– |
default: /* don't bother */ |
| 38 |
– |
return(0); |
| 37 |
|
} |
| 38 |
+ |
/* don't bother with non-surfaces -- too tricky */ |
| 39 |
+ |
return(0); |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
|
| 43 |
|
preload_objs() /* preload object data structures */ |
| 44 |
|
{ |
| 45 |
|
register OBJECT on; |
| 46 |
< |
/* note that nobjects may change during */ |
| 46 |
> |
/* note that nobjects may change during loop */ |
| 47 |
|
for (on = 0; on < nobjects; on++) |
| 48 |
|
load_os(objptr(on)); |
| 49 |
|
} |