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

Comparing ray/src/px/pinterp.c (file contents):
Revision 1.2 by greg, Tue Dec 12 11:21:25 1989 UTC vs.
Revision 1.3 by greg, Tue Dec 12 15:53:10 1989 UTC

# Line 17 | Line 17 | static char SCCSid[] = "$SunId$ LBL";
17   #define pscan(y)        (ourpict+(y)*ourview.hresolu)
18   #define zscan(y)        (ourzbuf+(y)*ourview.hresolu)
19  
20 + #define ABS(x)          ((x)>0?(x):-(x))
21 +
22   VIEW    ourview = STDVIEW(512);         /* desired view */
23  
24   double  zeps = 0.001;                   /* allowed z epsilon */
# Line 293 | Line 295 | fillpicture()                          /* fill in empty spaces */
295                                  copycolr(pscan(y)[i],pscan(yback[i])[i]);
296                                  } else {
297                                          while (++i < x)
298 <                                                if (yback[i] < 0 ||
299 <                                zscan(yback[i])[i] < zscan(y)[xback])
298 >                                                if (yback[i] < 0
299 >                                || ABS(i-xback) <= 1 || (ABS(y-yback[i]) > 1
300 >                                && zscan(yback[i])[i] < zscan(y)[xback]))
301                                          copycolr(pscan(y)[i],pscan(y)[xback]);
302                                                  else
303                                          copycolr(pscan(y)[i],pscan(yback[i])[i]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines