--- ray/src/ot/bbox.c 1989/02/21 14:44:47 1.2 +++ ray/src/ot/bbox.c 2003/02/25 02:47:22 2.3 @@ -1,19 +1,18 @@ -/* Copyright (c) 1987 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: bbox.c,v 2.3 2003/02/25 02:47:22 greg Exp $"; #endif - /* * bbox.c - routines for bounding box computation. - * - * 8/4/87 */ +#include "copyright.h" + #include "standard.h" #include "object.h" +#include "octree.h" + #include "otypes.h" #include "face.h" @@ -63,14 +62,14 @@ FVECT bbmin, bbmax; circle2bbox(CO_P1(co), co->ad, CO_R1(co), bbmin, bbmax); break; case OBJ_INSTANCE: - io = getinstance(o, GET_BOUNDS); + io = getinstance(o, IO_BOUNDS); for (j = 0; j < 8; j++) { for (i = 0; i < 3; i++) { v[i] = io->obj->scube.cuorg[i]; if (j & 1<obj->scube.cusize; } - multp3(v, v, io->f.xfm); + multp3(v, v, io->x.f.xfm); point2bbox(v, bbmin, bbmax); } break;