diff options
author | Anthony LaTorre <tlatorre9@gmail.com> | 2011-07-25 16:41:34 -0400 |
---|---|---|
committer | Anthony LaTorre <tlatorre9@gmail.com> | 2011-07-25 16:41:34 -0400 |
commit | 0716c8af5be04ea1709ca178d5341e5ee3df607b (patch) | |
tree | 83e124c4f0ea59a8fdf022cdecc22a4a4d76fe09 /detectors | |
parent | 90372f3f5cd2ba25e6b24fe2b229275265c98e81 (diff) | |
download | chroma-0716c8af5be04ea1709ca178d5341e5ee3df607b.tar.gz chroma-0716c8af5be04ea1709ca178d5341e5ee3df607b.tar.bz2 chroma-0716c8af5be04ea1709ca178d5341e5ee3df607b.zip |
moved triangle colors to a separate global device array so that the ray tracer and photon simulation can be run in the same context. added the ability to add alpha channel to triangle color so that triangles can be made transparent. added __noinline__ modifier to certain device functions to speed up kernel compilation.
Diffstat (limited to 'detectors')
-rw-r--r-- | detectors/lbne.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/detectors/lbne.py b/detectors/lbne.py index d7b6843..8fe2c18 100644 --- a/detectors/lbne.py +++ b/detectors/lbne.py @@ -20,7 +20,7 @@ def build_lbne(radius, height, nstrings, pmts_per_string, endcap_spacing): # outer cylinder cylinder_mesh = cylinder(radius, radius, height+height/(pmts_per_string-1), theta=(2*np.pi/nstrings)/4) cylinder_mesh.vertices = rotate(cylinder_mesh.vertices, np.pi/2, (-1,0,0)) - lbne.add_solid(Solid(cylinder_mesh, water, vacuum, black_surface, 0xff)) + lbne.add_solid(Solid(cylinder_mesh, water, vacuum, black_surface, 0x990000ff)) lbne.pmtids = [] |