From 54d7d1efe215337d121813e27cd4909b9a76e912 Mon Sep 17 00:00:00 2001 From: Anthony LaTorre Date: Tue, 16 Aug 2011 17:07:52 -0400 Subject: add linear_extrude() function to make.py. rotate_extrude() now takes the number of rotational steps to extrude instead of the angle step size. updated documention in make.py. --- detectors/lbne.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'detectors/lbne.py') diff --git a/detectors/lbne.py b/detectors/lbne.py index d3c12da..8942cb2 100644 --- a/detectors/lbne.py +++ b/detectors/lbne.py @@ -21,7 +21,7 @@ def build_lbne(radius, height, nstrings, pmts_per_string, endcap_spacing, physic lbne = Geometry() # outer cylinder - cylinder_mesh = segmented_cylinder(radius, height+height/(pmts_per_string-1), theta=(2*np.pi/nstrings)/8, n=200) + cylinder_mesh = segmented_cylinder(radius, height+height/(pmts_per_string-1), nsteps=16*nstrings, nsegments=1200) cylinder_mesh.vertices = rotate(cylinder_mesh.vertices, np.pi/2, (-1,0,0)) lbne.add_solid(Solid(cylinder_mesh, water_wcsim, vacuum, black_surface, 0xff0000ff)) -- cgit