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

Comparing ray/src/rt/pmapdata.c (file contents):
Revision 2.8 by rschregle, Tue May 26 13:31:19 2015 UTC vs.
Revision 2.9 by rschregle, Wed May 27 19:15:27 2015 UTC

# Line 337 | Line 337 | void findPhotons (PhotonMap* pmap, const RAY* ray)
337        pmap -> minError = FHUGE;
338        pmap -> maxError = -FHUGE;
339        pmap -> rmsError = 0;
340 <      /* Maximum search radius limit is based on avg photon distance to
340 >      /* SQUARED max search radius limit is based on avg photon distance to
341         * centre of gravity, unless fixed by user (maxDistFix > 0) */
342        pmap -> maxDist0 = pmap -> maxDistLimit =
343 <         maxDistFix > 0 ? maxDistFix
343 >         maxDistFix > 0 ? maxDistFix * maxDistFix
344                          : PMAP_MAXDIST_COEFF * pmap -> squeueSize *
345                            pmap -> CoGdist / pmap -> heapSize;
346     }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines