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

Comparing ray/src/rt/pmapio.c (file contents):
Revision 2.1 by greg, Tue Feb 24 19:39:27 2015 UTC vs.
Revision 2.3 by greg, Wed May 20 12:58:31 2015 UTC

# Line 4 | Line 4
4  
5     Roland Schregle (roland.schregle@{hslu.ch, gmail.com})
6     (c) Fraunhofer Institute for Solar Energy Systems,
7 <       Lucerne University of Applied Sciences & Arts
7 >   (c) Lucerne University of Applied Sciences and Arts,
8 >   supported by the Swiss National Science Foundation (SNSF, #147053)
9     ==================================================================
10    
11     $Id$    
# Line 130 | Line 131 | void savePhotonMap (const PhotonMap *pmap, const char
131              putflt(prim -> dir [j], file);
132              
133           for (j = 0; j < 3; j++)
134 <            putflt(prim -> org [j], file);
134 >            putflt(prim -> pos [j], file);
135          
136           if (ferror(file))
137              error(SYSTEM, "error writing primary photon rays");
# Line 252 | Line 253 | PhotonMapType loadPhotonMap (PhotonMap *pmap, const ch
253              prim -> dir [j] = getflt(file);
254              
255           for (j = 0; j < 3; j++)
256 <            prim -> org [j] = getflt(file);
256 >            prim -> pos [j] = getflt(file);
257              
258           if (feof(file))
259              error(SYSTEM, "error reading primary photon rays");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines