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

Comparing ray/src/hd/rhdisp2.c (file contents):
Revision 3.26 by gwlarson, Tue Nov 24 17:05:36 1998 UTC vs.
Revision 3.27 by gwlarson, Thu Dec 3 15:18:08 1998 UTC

# Line 285 | Line 285 | int    hr, vr;
285                  addview(todo[i], vn, hr, vr);
286          if (MEYERNG <= FTINY || vn->type == VT_PAR)
287                  return(1);
288 <        hdgsiz = 0.; d = 1./3. / n;     /* compute mean grid size */
288 >        hdgsiz = 0.;                    /* compute mean grid size */
289          for (i = 0; i < n; i++) {
290                  hp = hdlist[todo[i]];
291 <                hdgsiz += d * ( VLEN(hp->xv[0])/hp->grid[0] +
292 <                                VLEN(hp->xv[1])/hp->grid[1] +
293 <                                VLEN(hp->xv[2])/hp->grid[2] ) ;
291 >                hdgsiz +=       1./3. / VLEN(hp->wg[0]) +
292 >                                1./3. / VLEN(hp->wg[1]) +
293 >                                1./3. / VLEN(hp->wg[2]) ;
294          }
295 +        hdgsiz /= (double)n;
296                                          /* add to current eye position */
297          if (cureye.rng <= FTINY) {
298                  VCOPY(cureye.vpt, vn->vp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines