1 |
– |
/* Copyright (c) 1990 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* o_instance.c - routines for creating octrees for other octrees. |
6 |
|
* |
11 |
|
|
12 |
|
#include "object.h" |
13 |
|
|
14 |
+ |
#include "octree.h" |
15 |
+ |
|
16 |
|
#include "instance.h" |
17 |
|
|
18 |
|
#include "plocate.h" |
55 |
|
in = getinstance(o, IO_BOUNDS); |
56 |
|
/* check if cube vertex in octree */ |
57 |
|
for (j = 0; j < 3; j++) |
58 |
< |
cumax[j] = (cumin[j] = cu->cuorg[j]-FTINY) |
59 |
< |
+ cu->cusize + 2.0*FTINY; |
58 |
> |
cumax[j] = (cumin[j] = in->obj->scube.cuorg[j]) + |
59 |
> |
in->obj->scube.cusize; |
60 |
|
vloc = ABOVE | BELOW; |
61 |
|
vout = 0; |
62 |
|
for (i = 0; i < 8; i++) { |