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

Comparing ray/src/rt/pmapparm.h (file contents):
Revision 2.9 by rschregle, Fri Feb 2 19:47:55 2018 UTC vs.
Revision 2.10 by rschregle, Wed Apr 14 11:26:25 2021 UTC

# Line 7 | Line 7
7    
8     Roland Schregle (roland.schregle@{hslu.ch, gmail.com}
9     (c) Fraunhofer Institute for Solar Energy Systems,
10 +       supported by the German Research Foundation
11 +       (DFG LU-204/10-2, "Fassadenintegrierte Regelsysteme" (FARESYS))
12     (c) Lucerne University of Applied Sciences and Arts,
13 <       supported by the Swiss National Science Foundation (SNSF, #147053)
13 >       supported by the Swiss National Science Foundation
14 >       (SNSF #147053, "Daylight Redirecting Components")
15     ======================================================================
16    
17     $Id$
# Line 28 | Line 31
31        unsigned long distribTarget;   /* Num photons to store */
32     } PhotonMapParams;
33    
34 <   /* Bounding box for region of interest */
35 <      typedef struct {
36 <      float min [3], max [3];
34 >   /* Region of interest */
35 >   typedef struct {
36 >      /* siz [1], siz [2] <= 0 --> sphere, else rectangle */
37 >      float pos [3], siz [3];
38     } PhotonMapROI;
39 +  
40 +   #define PMAP_ROI_ISSPHERE(roi) ((roi)->siz[1] <= 0 && (roi)->siz[2] <= 0)
41 +   #define PMAP_ROI_SETSPHERE(roi) ((roi)->siz[1] = (roi)->siz[2] = -1)
42  
43  
44     extern PhotonMapParams pmapParams [NUM_PMAP_TYPES];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines