ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/ot/o_instance.c
(Generate patch)

Comparing ray/src/ot/o_instance.c (file contents):
Revision 1.6 by greg, Sat Dec 15 19:55:05 1990 UTC vs.
Revision 2.2 by greg, Sat Feb 22 02:07:26 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1990 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   *  o_instance.c - routines for creating octrees for other octrees.
6   *
# Line 14 | Line 11 | static char SCCSid[] = "$SunId$ LBL";
11  
12   #include  "object.h"
13  
14 + #include  "octree.h"
15 +
16   #include  "instance.h"
17  
18   #include  "plocate.h"
# Line 56 | Line 55 | CUBE  *cu;
55          in = getinstance(o, IO_BOUNDS);
56                                          /* check if cube vertex in octree */
57          for (j = 0; j < 3; j++)
58 <                cumax[j] = (cumin[j] = cu->cuorg[j]-FTINY)
59 <                                + cu->cusize + 2.0*FTINY;
58 >                cumax[j] = (cumin[j] = in->obj->scube.cuorg[j]) +
59 >                                in->obj->scube.cusize;
60          vloc = ABOVE | BELOW;
61          vout = 0;
62          for (i = 0; i < 8; i++) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines