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. --- mesh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mesh.py') diff --git a/mesh.py b/mesh.py index a3efae5..0f1e8b6 100644 --- a/mesh.py +++ b/mesh.py @@ -4,8 +4,8 @@ import struct class Mesh(object): def __init__(self, vertices, triangles): - vertices = np.asarray(vertices, dtype=float) - triangles = np.asarray(triangles, dtype=int) + vertices = np.asarray(vertices, dtype=np.float32) + triangles = np.asarray(triangles, dtype=np.int32) if len(vertices.shape) != 2 or vertices.shape[1] != 3: raise ValueError('shape mismatch') -- cgit