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

Comparing ray/src/rt/virtuals.c (file contents):
Revision 2.20 by greg, Fri Sep 14 13:34:02 2012 UTC vs.
Revision 2.21 by greg, Tue Jul 15 23:44:53 2014 UTC

# Line 324 | Line 324 | vstestvis(             /* pretest source visibility */
324   {
325          RAY  sr;
326          FVECT  onorm;
327 <        FVECT  offsdir;
327 >        double  offsdir[3];
328          SRCINDEX  si;
329          double  or, d, d1;
330          int  stestlim, ssn;
# Line 340 | Line 340 | vstestvis(             /* pretest source visibility */
340                                          /* 32. == heuristic constant */
341                  n = 32.*or2/(thescene.cusize*thescene.cusize)*vspretest + .5;
342          } else {
343 <                for (i = 0; i < 3; i++)
344 <                        offsdir[i] = source[sn].sloc[i] - oc[i];
343 >                VSUB(offsdir, source[sn].sloc, oc);
344                  d = DOT(offsdir,offsdir);
345                  if (d <= FTINY)
346                          n = 2.*PI * vspretest + .5;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines