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.7 by rschregle, Tue May 17 17:39:47 2016 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 27 | Line 30
30        unsigned minGather, maxGather; /* Num photons to gather */
31        unsigned long distribTarget;   /* Num photons to store */
32     } PhotonMapParams;
33 +  
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];
# Line 41 | Line 53
53    
54    
55     extern float         pdfSamples, preDistrib, finalGather,
56 <                        gatherTolerance, maxDistFix;
56 >                        gatherTolerance, maxDistFix, pmapMaxDist,
57 >                        photonMaxDist;
58     extern unsigned long photonHeapSizeInc, photonMaxBounce;
59 <   extern unsigned      photonRepTime, maxPreDistrib, defaultGather;
60 <  
61 < #ifdef PMAP_ROI                
62 <   extern float pmapROI [6];
63 < #endif  
59 >   extern unsigned      photonRepTime, maxPreDistrib, defaultGather,
60 >                        verbose;
61 >
62 >   extern unsigned      pmapNumROI;
63 >   extern PhotonMapROI  *pmapROI;
64  
65   #ifdef PMAP_OOC
66     extern float         pmapCachePageSize;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines