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.13 by schorsch, Mon Jul 21 22:30:19 2003 UTC vs.
Revision 2.14 by greg, Tue Jan 18 00:33:16 2005 UTC

# Line 125 | Line 125 | double  *mp;
125          } else if (direc)
126                          for (i = 0; i < 3; i++)
127                                  vec[i] -= ourview.vp[i];
128 +        if (normalize(vec) == 0.0)
129 +                return(-1);
130          return(0);
131   }
132  
# Line 386 | Line 388 | FVECT  vc;
388   {
389          double  d;
390          FVECT  v1;
391 <        VIEW  nv;
391 >        VIEW  nv = ourview;
392          register int  i;
393  
392        VCOPY(nv.vup, ourview.vup);
393        nv.hoff = ourview.hoff; nv.voff = ourview.voff;
394          spinvector(nv.vdir, ourview.vdir, ourview.vup, angle*(PI/180.));
395          if (elev != 0.0) {
396                  fcross(v1, ourview.vup, nv.vdir);
# Line 403 | Line 403 | FVECT  vc;
403                  d = 0.0;                        /* don't move closer */
404                  for (i = 0; i < 3; i++)
405                          d += (vc[i] - ourview.vp[i])*ourview.vdir[i];
406                nv.vfore = ourview.vfore;
407                nv.vaft = ourview.vaft;
406          } else {
409                nv.horiz = ourview.horiz;
410                nv.vert = ourview.vert;
407                  d = sqrt(dist2(ourview.vp, vc)) / mag;
408                  if ((nv.vfore = ourview.vfore) > FTINY) {
409                          nv.vfore += d - d*mag;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines