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 2.13 by greg, Sun Feb 27 10:16:57 1994 UTC vs.
Revision 2.14 by greg, Wed Dec 21 16:59:03 1994 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1993 Regents of the University of California */
1 > /* Copyright (c) 1994 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 186 | Line 186 | char   *argv[];
186          if (fillsamp == 1)
187                  fillo &= ~F_BACK;
188                                                  /* set view */
189 <        if (err = setview(&ourview)) {
189 >        if (ourview.vaft > FTINY)
190 >                err = "no aft clipping plane allowed";
191 >        else
192 >                err = setview(&ourview);
193 >        if (err != NULL) {
194                  fprintf(stderr, "%s: %s\n", progname, err);
195                  exit(1);
196          }
# Line 494 | Line 498 | FVECT  pos;
498                  pos[1] += .5 - ourview.voff;
499                  return(0);
500          }
501 <        if (viewray(pt, direc, &theirview, pos[0], pos[1]) < 0)
501 >        if (viewray(pt, direc, &theirview, pos[0], pos[1]) < -FTINY)
502                  return(-1);
503          pt[0] += direc[0]*pos[2];
504          pt[1] += direc[1]*pos[2];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines