diff options
author | Anthony LaTorre <tlatorre9@gmail.com> | 2011-06-21 20:52:17 -0400 |
---|---|---|
committer | Anthony LaTorre <tlatorre9@gmail.com> | 2011-06-21 20:52:17 -0400 |
commit | f04ecc51cd9d634a7c418a611946944b05c6bec4 (patch) | |
tree | ab4e1ed548d2db3e73b965d0b16edf4056984d3e /detectors/lbne.py | |
parent | 93ad18d540a351f628726bfff9bf16f3dcf9ceb3 (diff) | |
download | chroma-f04ecc51cd9d634a7c418a611946944b05c6bec4.tar.gz chroma-f04ecc51cd9d634a7c418a611946944b05c6bec4.tar.bz2 chroma-f04ecc51cd9d634a7c418a611946944b05c6bec4.zip |
added rotate_extrude() and a number of functions to produce meshes of useful solid shapes. tried to speed up geometry.build() by replacing some for loops with np.fromiter() and imap().
Diffstat (limited to 'detectors/lbne.py')
-rw-r--r-- | detectors/lbne.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/detectors/lbne.py b/detectors/lbne.py index 04751e6..405229c 100644 --- a/detectors/lbne.py +++ b/detectors/lbne.py @@ -19,7 +19,8 @@ class LBNE(Geometry): # outer cylinder cylinder_mesh = \ - make.cylinder(radius, height+height/(pmts_per_string-1)) + make.cylinder(radius, radius, height+height/(pmts_per_string-1)) + cylinder_mesh.vertices = rotate(cylinder_mesh.vertices, np.pi/2, (-1,0,0)) cylinder_solid = Solid(cylinder_mesh, lightwater_sno, vacuum, black_surface, 0x0000ff) self.add_solid(cylinder_solid) |