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

Comparing ray/src/rt/srcobstr.c (file contents):
Revision 2.16 by greg, Mon Feb 14 20:13:38 2011 UTC vs.
Revision 2.17 by greg, Wed Aug 7 05:10:09 2013 UTC

# Line 63 | Line 63 | initobscache(int sn)
63          FVECT           rorg, rdir;
64          RREAL           d;
65          int             i, j, k;
66 <        int             ax, ax1, ax2;
66 >        int             ax=0, ax1=1, ax2=2;
67  
68          if (srcp->sflags & (SSKIP|SPROX|SSPOT|SVIRTUAL))
69                  return;                 /* don't cache these */
# Line 200 | Line 200 | srcobstructp(register RAY *r)
200                  initobscache(r->rsrc);
201                                          /* compute cache index */
202          if (srcp->sflags & SDISTANT) {
203 <                int     ax, ax1, ax2;
203 >                int     ax=0, ax1=1, ax2=2;
204                  double  t;
205                  ax = srcp->obscache->p.d.ax;
206                  if ((ax1 = ax+1) >= 3) ax1 -= 3;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines