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.29 by greg, Tue Jan 18 00:33:16 2005 UTC vs.
Revision 2.31 by greg, Fri Feb 18 17:42:14 2005 UTC

# Line 34 | Line 34 | register VIEW  *v;
34          if (v->vaft < -FTINY || (v->vaft > FTINY && v->vaft <= v->vfore))
35                  return("illegal fore/aft clipping plane");
36  
37 +        if (v->vdist <= FTINY)
38 +                return("illegal view distance");
39          v->vdist *= normalize(v->vdir);         /* normalize direction */
40          if (v->vdist == 0.0)
41                  return("zero view direction");
# Line 349 | Line 351 | register char  *av[];
351                  v->vdir[0] = atof(av[1]);
352                  v->vdir[1] = atof(av[2]);
353                  v->vdir[2] = atof(av[3]);
354 +                v->vdist = 1.;
355                  return(3);
356          case 'u':                       /* up */
357                  check(3,"fff");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines