1 |
< |
/* Copyright (c) 1988 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
53 |
|
int vloc, vout; |
54 |
|
register int i, j; |
55 |
|
/* get octree arguments */ |
56 |
< |
in = getinstance(o, GET_BOUNDS); |
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]) + |
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 |