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 1.1 by greg, Thu Feb 2 10:41:39 1989 UTC vs.
Revision 1.3 by greg, Wed May 24 13:55:54 1989 UTC

# Line 272 | Line 272 | FVECT  vc;
272          VCOPY(nv.vup, ourview.vup);
273          nv.hresolu = ourview.hresolu; nv.vresolu = ourview.vresolu;
274          spinvector(nv.vdir, ourview.vdir, ourview.vup, angle*(PI/180.));
275        d = sqrt(dist2(ourview.vp, vc)) / mag;
276        for (i = 0; i < 3; i++)
277                nv.vp[i] = vc[i] - d*nv.vdir[i];
275          if ((nv.type = ourview.type) == VT_PAR) {
276                  nv.horiz = ourview.horiz / mag;
277                  nv.vert = ourview.vert / mag;
278 +                d = 0.0;                        /* don't move closer */
279 +                for (i = 0; i < 3; i++)
280 +                        d += (vc[i] - ourview.vp[i])*ourview.vdir[i];
281          } else {
282                  nv.horiz = ourview.horiz;
283                  nv.vert = ourview.vert;
284 +                d = sqrt(dist2(ourview.vp, vc)) / mag;
285          }
286 +        for (i = 0; i < 3; i++)
287 +                nv.vp[i] = vc[i] - d*nv.vdir[i];
288          newview(&nv);
289   }
290  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines