ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/bsdfrep.h
(Generate patch)

Comparing ray/src/cv/bsdfrep.h (file contents):
Revision 2.14 by greg, Sat Mar 8 06:37:59 2014 UTC vs.
Revision 2.18 by greg, Wed Mar 19 20:49:01 2014 UTC

# Line 7 | Line 7
7  
8   #include "bsdf.h"
9  
10 #define DEBUG           1
11
10   #ifndef GRIDRES
11   #define GRIDRES         (1<<8)          /* grid resolution per side */
12   #endif
# Line 16 | Line 14
14   #define ANG2R(r)        (int)((r)*((1<<16)/M_PI))
15   #define R2ANG(c)        (((c)+.5)*(M_PI/(1<<16)))
16  
17 < typedef struct {
18 <        float           vsum;           /* DSF sum */
19 <        unsigned int    nval;           /* number of values in sum */
17 > typedef union {
18 >        struct {
19 >                float           v;              /* DSF sum */
20 >                unsigned int    n;              /* number of values in sum */
21 >        }       sum;                    /* sum for averaging */
22 >        float   val[2];                 /* comparison values */
23   } GRIDVAL;                      /* grid value */
24  
25   typedef struct {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines