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

Comparing ray/src/rt/pmapmat.h (file contents):
Revision 2.12 by rschregle, Tue Feb 23 12:42:41 2016 UTC vs.
Revision 2.15 by greg, Tue Sep 17 16:36:05 2024 UTC

# Line 5 | Line 5
5    
6     Roland Schregle (roland.schregle@{hslu.ch, gmail.com})
7     (c) Fraunhofer Institute for Solar Energy Systems,
8 +       supported by the German Research Foundation
9 +       (DFG LU-204/10-2, "Fassadenintegrierte Regelsysteme FARESYS")
10     (c) Lucerne University of Applied Sciences and Arts,
11 <       supported by the Swiss National Science Foundation (SNSF, #147053)
11 >       supported by the Swiss National Science Foundation
12 >       (SNSF #147053, "Daylight Redirecting Components")
13     ======================================================================
14    
15   */
# Line 17 | Line 20
20  
21     #include "pmap.h"
22  
23 + #ifdef __cplusplus
24 + extern "C" {
25 + #endif
26 +
27     /*
28        Check for paths already accounted for in photon map to avoid
29        double-counting during backward raytracing.
# Line 59 | Line 66
66                                   causticPmap || contribPmap) && \
67                                   (r) -> crtype & (AMBIENT | SHADOW) && \
68                                   (r) -> rtype & (TRANS | REFRACTED))
69 <                                
69 >
70     /* Check if scattered ray spawns a caustic photon;
71 <    * !!! NOTE this has to set bit 0 to properly handle caustic contrib
72 <    * !!! photons, so the explicit test against zero *IS* required!  */
71 >    * !!! NOTE this returns a single bit as boolean value (0|1), rather
72 >    * !!! than the original short int, hence the explicit test against zero.
73 >    * !!! This allows the macro the be used in a conditional statement
74 >    * !!! and when setting a photon's caustic flag in newPhoton(). */
75     #define PMAP_CAUSTICRAY(r)    (((r) -> rtype & SPECULAR) != 0)
76  
77  
# Line 95 | Line 104
104  
105     /* Find antimatter geometry declared as photon sensors */  
106     void getPhotonSensors (char **sensorList);
107 <  
107 >
108 > #ifdef __cplusplus
109 > }
110 > #endif
111 >
112   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines