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

Comparing ray/src/hd/rholo3.c (file contents):
Revision 3.18 by gregl, Mon Jan 5 16:46:34 1998 UTC vs.
Revision 3.19 by gregl, Tue Jan 6 15:08:51 1998 UTC

# Line 227 | Line 227 | init_global()                  /* initialize global ray computation *
227                                          /* compute beam weights */
228          k = 0;
229          for (j = 0; hdlist[j] != NULL; j++) {
230 <                frac = 512. * hdlist[j]->wg[0] *
231 <                                hdlist[j]->wg[1] * hdlist[j]->wg[2];
232 <                if (frac < 0.) frac = -frac;
230 >                frac = 512. * VLEN(hdlist[j]->wg[0]) *
231 >                                VLEN(hdlist[j]->wg[1]) *
232 >                                VLEN(hdlist[j]->wg[2]);
233                  for (i = nbeams(hdlist[j]); i > 0; i--) {
234                          complist[k].hd = j;
235                          complist[k].bi = i;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines