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 |
|
} |