freealise commited on
Commit
a301940
1 Parent(s): 2e954f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=rgba.astype(np.uint8))
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