From e06a8b551c730e3d1111fc571c5d48edb85f70ce Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Tue, 7 Jun 2011 21:53:10 -0400 Subject: Switch triangle texture to device array, use int32 and float32 datatypes everywhere, and build final mesh without concatenation of lists. This allows for very large detectors, like full size LBNE. --- solid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'solid.py') diff --git a/solid.py b/solid.py index 67e8c81..44f3b3f 100644 --- a/solid.py +++ b/solid.py @@ -10,9 +10,9 @@ class Solid(object): if rotation.shape != (3,3): raise ValueError('shape mismatch') - self.rotation = rotation + self.rotation = rotation.astype(np.float32) - displacement = np.asarray(displacement) + displacement = np.asarray(displacement, dtype=np.float32) if displacement.shape != (3,): raise ValueError('shape mismatch') -- cgit