diff options
author | Anthony LaTorre <tlatorre9@gmail.com> | 2011-08-05 18:28:12 -0400 |
---|---|---|
committer | Anthony LaTorre <tlatorre9@gmail.com> | 2011-08-05 18:28:12 -0400 |
commit | 97467c888720451e97dcd0881d90f61641f43b47 (patch) | |
tree | 194bd440776cafadfc8a4c52d4bbc95700df1773 /solids | |
parent | 60832979d23e2538da0f23bcbe13f3f10a4dc11d (diff) | |
download | chroma-97467c888720451e97dcd0881d90f61641f43b47.tar.gz chroma-97467c888720451e97dcd0881d90f61641f43b47.tar.bz2 chroma-97467c888720451e97dcd0881d90f61641f43b47.zip |
speedup bounding volume construction of leaf nodes by taking the min and max of ungrouped instead of grouped vertices from a mesh
Diffstat (limited to 'solids')
-rw-r--r-- | solids/pmts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/solids/pmts.py b/solids/pmts.py index 377024d..22d9d67 100644 --- a/solids/pmts.py +++ b/solids/pmts.py @@ -51,7 +51,7 @@ def build_pmt(filename, glass_thickness, outer_material=water, theta=np.pi/8): outer_envelope = Solid(outer_envelope_mesh, glass, outer_material) - photocathode = np.mean(inner_envelope_mesh[:], axis=1)[:,1] > 0 + photocathode = np.mean(inner_envelope_mesh.assemble(), axis=1)[:,1] > 0 inner_envelope = Solid(inner_envelope_mesh, vacuum, glass, surface=np.where(photocathode, r7081hqe_photocathode, shiny_surface), color=np.where(photocathode, 0xff00, 0xff0000)) |