summaryrefslogtreecommitdiff
path: root/mesh.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesh.py')
-rw-r--r--mesh.py4
1 files changed, 2 insertions, 2 deletions
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')