diff options
Diffstat (limited to 'mesh.py')
-rw-r--r-- | mesh.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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') |