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

Comparing ray/src/util/rsensor.c (file contents):
Revision 2.14 by greg, Tue Sep 30 23:14:34 2014 UTC vs.
Revision 2.15 by greg, Thu Apr 23 23:34:18 2015 UTC

# Line 15 | Line 15 | static const char RCSid[] = "$Id$";
15  
16   #define DEGREE          (PI/180.)
17  
18 < #define MAXNT           180     /* maximum number of theta divisions */
18 > #define MAXNT           181     /* maximum number of theta divisions */
19   #define MAXNP           360     /* maximum number of phi divisions */
20  
21   extern char     *progname;      /* global argv[0] */
# Line 424 | Line 424 | init_ptable(
424                  }
425                  pvals[i*(nphi+1) + nphi] = phdiv[sntp[1]];
426          }
427 +                                                /* duplicate final row */
428 +        memcpy(pvals+ntheta*(nphi+1), pvals+(ntheta-1)*(nphi+1),
429 +                                sizeof(*pvals)*(nphi+1));
430          tvals[0] = .0f;
431          tvals[ntheta] = (float)tsize;
432   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines