1 |
< |
/* Copyright (c) 1988 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1990 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
56 |
|
in = getinstance(o, IO_BOUNDS); |
57 |
|
/* check if cube vertex in octree */ |
58 |
|
for (j = 0; j < 3; j++) |
59 |
< |
cumax[j] = (cumin[j] = in->obj->scube.cuorg[j]) + |
60 |
< |
in->obj->scube.cusize; |
59 |
> |
cumax[j] = (cumin[j] = cu->cuorg[j]-FTINY) |
60 |
> |
+ cu->cusize + 2.0*FTINY; |
61 |
|
vloc = ABOVE | BELOW; |
62 |
|
vout = 0; |
63 |
|
for (i = 0; i < 8; i++) { |
66 |
|
if (i & 1<<j) |
67 |
|
v1[j] += cu->cusize; |
68 |
|
} |
69 |
< |
multp3(v2, v1, in->b.xfm); |
69 |
> |
multp3(v2, v1, in->x.b.xfm); |
70 |
|
if (j = plocate(v2, cumin, cumax)) |
71 |
|
vout++; |
72 |
|
vloc &= j; |
87 |
|
if (i & 1<<j) |
88 |
|
v1[j] += in->obj->scube.cusize; |
89 |
|
} |
90 |
< |
multp3(vert[i], v1, in->f.xfm); |
90 |
> |
multp3(vert[i], v1, in->x.f.xfm); |
91 |
|
if (j = plocate(vert[i], cumin, cumax)) |
92 |
|
vloc &= j; |
93 |
|
else |