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

Comparing ray/src/ot/bbox.c (file contents):
Revision 1.2 by greg, Tue Feb 21 14:44:47 1989 UTC vs.
Revision 1.4 by greg, Sat Dec 15 15:23:56 1990 UTC

# Line 63 | Line 63 | FVECT  bbmin, bbmax;
63                  circle2bbox(CO_P1(co), co->ad, CO_R1(co), bbmin, bbmax);
64                  break;
65          case OBJ_INSTANCE:
66 <                io = getinstance(o, GET_BOUNDS);
66 >                io = getinstance(o, IO_BOUNDS);
67                  for (j = 0; j < 8; j++) {
68                          for (i = 0; i < 3; i++) {
69                                  v[i] = io->obj->scube.cuorg[i];
70                                  if (j & 1<<i)
71                                          v[i] += io->obj->scube.cusize;
72                          }
73 <                        multp3(v, v, io->f.xfm);
73 >                        multp3(v, v, io->x.f.xfm);
74                          point2bbox(v, bbmin, bbmax);
75                  }
76                  break;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines