From 97467c888720451e97dcd0881d90f61641f43b47 Mon Sep 17 00:00:00 2001 From: Anthony LaTorre Date: Fri, 5 Aug 2011 18:28:12 -0400 Subject: speedup bounding volume construction of leaf nodes by taking the min and max of ungrouped instead of grouped vertices from a mesh --- solids/pmts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'solids') 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)) -- cgit