Spaces:
Sleeping
Sleeping
fabiencasenave
commited on
Commit
•
e7895e8
1
Parent(s):
27ec183
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,10 @@ def sample_info(sample_id_str, fieldn):
|
|
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)
|
58 |
trimesh.visual.vertex_colors = vertex_colors
|
|
|
52 |
vertex_colors = m.to_rgba(field)[:,:3]
|
53 |
else:
|
54 |
vertex_colors = 1+np.zeros((field.shape[0], 3))
|
55 |
+
vertex_colors[:,0] = 0.2298057
|
56 |
+
vertex_colors[:,1] = 0.01555616
|
57 |
+
vertex_colors[:,2] = 0.15023281
|
58 |
+
|
59 |
# generate mesh
|
60 |
trimesh = Trimesh(vertices = nodes, faces = triangles)
|
61 |
trimesh.visual.vertex_colors = vertex_colors
|