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

Comparing ray/src/common/image.c (file contents):
Revision 2.14 by gwlarson, Tue Oct 27 08:44:29 1998 UTC vs.
Revision 2.15 by gwlarson, Fri Feb 26 12:24:07 1999 UTC

# Line 30 | Line 30 | register VIEW  *v;
30          static char  ill_horiz[] = "illegal horizontal view size";
31          static char  ill_vert[] = "illegal vertical view size";
32          
33 <        if (v->vfore < -FTINY || v->vaft < -FTINY ||
34 <                        (v->vaft > FTINY && v->vaft <= v->vfore))
33 >        if (v->vaft < -FTINY || (v->vaft > FTINY && v->vaft <= v->vfore))
34                  return("illegal fore/aft clipping plane");
35  
36          if (normalize(v->vdir) == 0.0)          /* normalize direction */
# Line 246 | Line 245 | FVECT  p;
245                  d = 1.0/sqrt(d*d + d2*d2);
246                  ip[1] = DOT(disp,v->vvec)*d/v->vn2 + 0.5 - v->voff;
247                  ip[2] = VLEN(disp);
248 <                if (v->vfore > FTINY)
250 <                        ip[2] *= (1.0 - v->vfore*d);
248 >                ip[2] *= (1.0 - v->vfore*d);
249                  return;
250          case VT_ANG:                    /* angular fisheye */
251                  ip[0] = 0.5 - v->hoff;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines