fabiencasenave
commited on
Commit
•
27ec183
1
Parent(s):
d9403e1
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def sample_info(sample_id_str, fieldn):
|
|
51 |
|
52 |
vertex_colors = m.to_rgba(field)[:,:3]
|
53 |
else:
|
54 |
-
vertex_colors = np.zeros((field.shape[0], 3))
|
55 |
|
56 |
# generate mesh
|
57 |
trimesh = Trimesh(vertices = nodes, faces = triangles)
|
|
|
51 |
|
52 |
vertex_colors = m.to_rgba(field)[:,:3]
|
53 |
else:
|
54 |
+
vertex_colors = 1+np.zeros((field.shape[0], 3))
|
55 |
|
56 |
# generate mesh
|
57 |
trimesh = Trimesh(vertices = nodes, faces = triangles)
|