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 |
|
*/ |
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. |
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 |
|
|
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 |