From 5b6ddaadfbcea436dfdc1e736f7da7763438dc45 Mon Sep 17 00:00:00 2001 From: Anthony LaTorre Date: Mon, 20 Jun 2011 16:33:59 -0400 Subject: pack material and surface indices into the fourth byte of the triangle array on the GPU. you can now take a screenshot of an image rendered with view.py() by pressing the f12 key. --- detectors/__init__.py | 10 ++++++++++ detectors/lbne.py | 10 +--------- 2 files changed, 11 insertions(+), 9 deletions(-) (limited to 'detectors') diff --git a/detectors/__init__.py b/detectors/__init__.py index 8bcf69b..7a36101 100644 --- a/detectors/__init__.py +++ b/detectors/__init__.py @@ -1 +1,11 @@ from lbne import LBNE + +# from lbne document 94 +radius = 25.0 +height = 50.0 +nstrings = 324 +pmts_per_string = 102 +endcap_spacing = .485 + +lbne = LBNE(radius, height, nstrings, pmts_per_string, endcap_spacing) +minilbne = LBNE(radius/10, height/10, nstrings//10, pmts_per_string//10, endcap_spacing) diff --git a/detectors/lbne.py b/detectors/lbne.py index 7f1bb41..04751e6 100644 --- a/detectors/lbne.py +++ b/detectors/lbne.py @@ -13,16 +13,8 @@ from transform import rotate, make_rotation_matrix from itertools import product import make -endcap_spacing = .485 - -radius = 25.0/10.0 -height = 50.0/10.0 - -nstrings = 324//10 -pmts_per_string = 102//10 - class LBNE(Geometry): - def __init__(self): + def __init__(self, radius, height, nstrings, pmts_per_string, endcap_spacing): super(LBNE, self).__init__() # outer cylinder -- cgit