|
![](/i/fill.gif) |
This is an interesting question.
The algorithm works so that it sends photons (in a spiral pattern) towards
the (bounding box of the) each object marked as target. That is, it sends
individually photons to each marked object.
If there are more objects marked as target, it will send more photons since
there are more objects.
On the other hand, if you specify each CSG component separately as a target,
what you are actually doing is to confine better the space which the object
takes and photons should be shot to. This means that less photons are shot
in vain.
I don't know which method send less photons in total. It probably depends
a lot in the geometry of the CSG object.
--
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |