diff options
author | Anthony LaTorre <tlatorre9@gmail.com> | 2011-07-30 16:10:27 -0400 |
---|---|---|
committer | Anthony LaTorre <tlatorre9@gmail.com> | 2011-07-30 16:10:27 -0400 |
commit | 1a6dc30108d3e78f72f773ec025fc98e246f68f5 (patch) | |
tree | de7603aaca9912521bd1ea2cc7291e7681e09bb1 /solids/__init__.py | |
parent | 368524c5007a1f6ce2ef7be8d5dc1156c41a9dc2 (diff) | |
download | chroma-1a6dc30108d3e78f72f773ec025fc98e246f68f5.tar.gz chroma-1a6dc30108d3e78f72f773ec025fc98e246f68f5.tar.bz2 chroma-1a6dc30108d3e78f72f773ec025fc98e246f68f5.zip |
when throwing photons from the light source out onto the scene, photons are now thrown randomly across each triangle instead of only at the center of each triangle. all of the rendering kernels have been rewritten so that they operate additively; for example, you may now throw photons from the light source onto the scene, render from the camera to the scene, then throw more photons and render again.
Diffstat (limited to 'solids/__init__.py')
-rw-r--r-- | solids/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/solids/__init__.py b/solids/__init__.py index 338725c..072c220 100644 --- a/solids/__init__.py +++ b/solids/__init__.py @@ -27,6 +27,12 @@ def build_12inch_pmt_with_lc(outer_material=water, theta=np.pi/8): pmt = build_12inch_pmt(outer_material, theta) return pmt + build_light_collector(pmt, a=lc_12inch_a, b=lc_12inch_b, d=lc_12inch_d, rmin=lc_12inch_rmin, rmax=lc_12inch_rmax) +@buildable('12inch_pmt_with_lc_hd') +def build_12inch_pmt_with_lc_hd(outer_material=water, theta=np.pi/32): + pmt = build_12inch_pmt(outer_material, theta) + return pmt + build_light_collector(pmt, a=lc_12inch_a, b=lc_12inch_b, d=lc_12inch_d, rmin=lc_12inch_rmin, rmax=lc_12inch_rmax, npoints=25) + + @buildable('8inch_pmt') def build_8inch_pmt(outer_material=water, theta=np.pi/8): return build_pmt(dir + '/sno_pmt.txt', 0.003, outer_material, theta) |