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

Comparing ray/src/rt/rv3.c (file contents):
Revision 2.24 by greg, Fri Aug 22 17:39:26 2008 UTC vs.
Revision 2.25 by greg, Thu Aug 28 23:50:39 2008 UTC

# Line 186 | Line 186 | paint(                 /* compute and paint a rectangle */
186          copycolor(p->v, thisray.rcol);
187          scalecolor(p->v, exposure);
188  
189 +        while (p->kid != NULL) {                /* need to propogate down */
190 +                int  mx = (p->xmin + p->xmax) >> 1;
191 +                int  my = (p->ymin + p->ymax) >> 1;
192 +                int  ki;
193 +                if (p->x >= mx)
194 +                        ki = (p->y >= my) ? UR : DR;
195 +                else
196 +                        ki = (p->y >= my) ? UL : DL;
197 +                pcopy(p, p->kid+ki);
198 +                p = p->kid + ki;
199 +        }
200 +
201          (*dev->paintr)(greyscale?greyof(p->v):p->v,
202                          p->xmin, p->ymin, p->xmax, p->ymax);
203  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines