Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -332,7 +332,7 @@ def get_mesh(image, depth, blur_data, loadall):
|
|
332 |
#mesh.append(trimesh.path.path.Path3D(entities=ln, vertices=verts, colors=cr))
|
333 |
mesh.append(trimesh.PointCloud(verts, colors=clrs))
|
334 |
mesh[len(mesh)-1].merge_vertices()
|
335 |
-
binary = DracoPy.encode(verts, colors=
|
336 |
mesh_n.append(str(fnum))
|
337 |
|
338 |
#theta = locations[fnum]["heading"] / 180 * np.pi
|
|
|
332 |
#mesh.append(trimesh.path.path.Path3D(entities=ln, vertices=verts, colors=cr))
|
333 |
mesh.append(trimesh.PointCloud(verts, colors=clrs))
|
334 |
mesh[len(mesh)-1].merge_vertices()
|
335 |
+
binary = DracoPy.encode(verts, colors=clrs.astype(np.uint8))
|
336 |
mesh_n.append(str(fnum))
|
337 |
|
338 |
#theta = locations[fnum]["heading"] / 180 * np.pi
|