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

Comparing ray/src/ot/oconv.c (file contents):
Revision 1.2 by greg, Wed Mar 29 11:25:02 1989 UTC vs.
Revision 1.3 by greg, Mon Apr 10 17:00:27 1989 UTC

# Line 119 | Line 119 | char  **argv;
119                                  bbmin[i] -= OMARGIN;
120                                  bbmax[i] += OMARGIN;
121                          }
122                        VCOPY(thescene.cuorg, bbmin);
122                          for (i = 0; i < 3; i++)
123                                  if (bbmax[i] - bbmin[i] > thescene.cusize)
124                                          thescene.cusize = bbmax[i] - bbmin[i];
125 +                        for (i = 0; i < 3; i++)
126 +                                thescene.cuorg[i] =
127 +                                        (bbmax[i]+bbmin[i]-thescene.cusize)*.5;
128                  }
129          } else {
130                  for (i = 0; i < 3; i++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines