1 |
– |
/* Copyright (c) 1987 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 |
|
* bbox.c - routines for bounding box computation. |
9 |
– |
* |
10 |
– |
* 8/4/87 |
6 |
|
*/ |
7 |
|
|
8 |
+ |
#include "copyright.h" |
9 |
+ |
|
10 |
|
#include "standard.h" |
11 |
|
|
12 |
|
#include "object.h" |
13 |
|
|
14 |
+ |
#include "octree.h" |
15 |
+ |
|
16 |
|
#include "otypes.h" |
17 |
|
|
18 |
|
#include "face.h" |
62 |
|
circle2bbox(CO_P1(co), co->ad, CO_R1(co), bbmin, bbmax); |
63 |
|
break; |
64 |
|
case OBJ_INSTANCE: |
65 |
< |
io = getinstance(o, GET_BOUNDS); |
65 |
> |
io = getinstance(o, IO_BOUNDS); |
66 |
|
for (j = 0; j < 8; j++) { |
67 |
|
for (i = 0; i < 3; i++) { |
68 |
|
v[i] = io->obj->scube.cuorg[i]; |
69 |
|
if (j & 1<<i) |
70 |
|
v[i] += io->obj->scube.cusize; |
71 |
|
} |
72 |
< |
multp3(v, v, io->f.xfm); |
72 |
> |
multp3(v, v, io->x.f.xfm); |
73 |
|
point2bbox(v, bbmin, bbmax); |
74 |
|
} |
75 |
|
break; |