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

Comparing ray/src/common/bsdf_t.h (file contents):
Revision 3.5 by greg, Tue Apr 19 21:31:22 2011 UTC vs.
Revision 3.6 by greg, Sun Apr 24 19:39:21 2011 UTC

# Line 29 | Line 29 | typedef struct SDNode_s {
29          } u;                    /* subtrees or values (extends struct) */
30   } SDNode;
31  
32 + /* Variable-resolution BSDF holder */
33 + typedef struct {
34 +        int     isxmit;         /* transmitted component? */
35 +        SDNode  *st;            /* BSDF tree */
36 + } SDTre;
37 +
38 + /* Holder for cumulative distribution (sum of BSDF * projSA) */
39 + typedef struct {
40 +        SD_CDIST_BASE;          /* base fields; must come first */
41 +        double  clim[2][2];     /* input coordinate limits */
42 +        double  max_psa;        /* maximum projected solid angle */
43 +        int     isxmit;         /* transmitted component? */
44 +        int     calen;          /* cumulative array length */
45 +        struct {
46 +                unsigned        hndx;   /* hilbert index */
47 +                unsigned        cuml;   /* cumulative value */
48 +        }               carr[1];        /* cumulative array (extends struct) */
49 + } SDTreCDst;    
50 +
51   #ifdef _EZXML_H
52   /* Load a variable-resolution BSDF tree from an open XML file */
53   extern SDError          SDloadTre(SDData *sd, ezxml_t wtl);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines