Homec4science

Improved sampling of flat photon ports / light sources; added specific code to…

Authored by U No Hoo <roland.schregle@gmail.com> on Jun 8 2021, 00:59.

Description

Improved sampling of flat photon ports / light sources; added specific code to handle disk and triangular sources in flatPhotonOrigin(), as well as (inefficient) rejection sampling for arbitrary polygons. The generalised routine photonOrigin() now returns an acceptance flag to signal photon rejection/acceptance. distribPhotons() now skips rejected photons, and does not increment the emission counter to compensate, thus increasing the photon flux. Unfortunately, this is not without side effects, as it affects the progress counter AND produces fewer photons than desired...

Details

Committed
U No Hoo <roland.schregle@gmail.com>Jun 8 2021, 00:59
Pushed
GTJun 8 2021, 01:21
Parents
R10977:7bd7f089982a: Added tempfile cleanup if buildPhotonMap() fails, corrected radius in short…
Branches
Unknown
Tags
Unknown