--- ray/src/ot/o_instance.c 1990/12/15 19:55:05 1.6 +++ ray/src/ot/o_instance.c 2003/02/22 02:07:26 2.2 @@ -1,9 +1,6 @@ -/* Copyright (c) 1990 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: o_instance.c,v 2.2 2003/02/22 02:07:26 greg Exp $"; #endif - /* * o_instance.c - routines for creating octrees for other octrees. * @@ -14,6 +11,8 @@ static char SCCSid[] = "$SunId$ LBL"; #include "object.h" +#include "octree.h" + #include "instance.h" #include "plocate.h" @@ -56,8 +55,8 @@ CUBE *cu; in = getinstance(o, IO_BOUNDS); /* check if cube vertex in octree */ for (j = 0; j < 3; j++) - cumax[j] = (cumin[j] = cu->cuorg[j]-FTINY) - + cu->cusize + 2.0*FTINY; + cumax[j] = (cumin[j] = in->obj->scube.cuorg[j]) + + in->obj->scube.cusize; vloc = ABOVE | BELOW; vout = 0; for (i = 0; i < 8; i++) {