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

Comparing ray/src/rt/pmapsrc.h (file contents):
Revision 2.3 by greg, Tue Aug 18 18:45:55 2015 UTC vs.
Revision 2.8 by greg, Tue Sep 17 16:36:05 2024 UTC

# Line 1 | Line 1
1   /* RCSid $Id$ */
2 +
3   /*
4 <   ==================================================================
4 >   ======================================================================
5     Photon map support routines for emission from light sources
6  
7     Roland Schregle (roland.schregle@{hslu.ch, gmail.com})
8     (c) Fraunhofer Institute for Solar Energy Systems,
9 +       supported by the German Research Foundation (DFG)
10 +       under the FARESYS project.
11     (c) Lucerne University of Applied Sciences and Arts,
12 <   supported by the Swiss National Science Foundation (SNSF, #147053)
13 <   ==================================================================
12 >       supported by the Swiss National Science Foundation (SNSF #147053).
13 >   (c) Tokyo University of Science,
14 >       supported by the JSPS KAKENHI Grant Number JP19KK0115.
15 >   ======================================================================
16    
17     $Id$
18   */
# Line 20 | Line 25
25     #include "ray.h"
26     #include "source.h"
27  
28 + #ifdef __cplusplus
29 + extern "C" {
30 + #endif
31  
32  
33     /* Data structures for photon emission */
# Line 53 | Line 61
61     } EmissionMap;
62  
63  
64 +  
65 +   /* Photon port flags (orientation relative to surface normal):
66 +    * Forward, backward, both (bidirectional). */
67 +   #define PMAP_PORTFWD 1
68 +   #define PMAP_PORTBWD 2
69 +   #define PMAP_PORTBI  (PMAP_PORTFWD | PMAP_PORTBWD)
70 +  
71  
72 <   /* Photon port list for emission from geometry en lieu of light sources */
72 >   /* Photon ports for emission from geometry en lieu of light sources */
73 >   extern char *photonPortList [MAXSET + 1];
74     extern SRCREC *photonPorts;
75     extern unsigned numPhotonPorts;
76  
# Line 65 | Line 81
81  
82  
83  
84 <   void getPhotonPorts ();
85 <   /* Find geometry declared as photon ports */
84 >   void getPhotonPorts (char **portList);
85 >   /* Find geometry declared as photon ports from modifiers in portList */
86  
87     void initPhotonEmissionFuncs ();
88     /* Init photonPartition[] and photonOrigin[] dispatch tables with source
# Line 88 | Line 104
104  
105     void inscatterVolumePmap (RAY *r, COLOR inscatter);
106     /* Add inscattering from volume photon map; interface to srcscatter() */
107 +
108 + #ifdef __cplusplus
109 + }
110 + #endif
111  
112   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines