freealise commited on
Commit
d053325
1 Parent(s): 696f168

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -241,7 +241,7 @@ def get_mesh(image, depth, scale):
241
  print(segments[0])
242
  print(colors[0])
243
  #mesh = trimesh.Trimesh(vertices=verts, faces=triangles, vertex_colors=colors)
244
- mesh = trimesh.path.path.Path3D(vertices=verts, entities=[segments], colors=[colors])
245
  #mesh = trimesh.PointCloud(verts, colors=colors)
246
  #material = trimesh.visual.texture.SimpleMaterial(image=image)
247
  #texture = trimesh.visual.TextureVisuals(uv=uv, image=image, material=material)
 
241
  print(segments[0])
242
  print(colors[0])
243
  #mesh = trimesh.Trimesh(vertices=verts, faces=triangles, vertex_colors=colors)
244
+ mesh = trimesh.path.path.Path3D(vertices=verts, entities=segments, colors=colors)
245
  #mesh = trimesh.PointCloud(verts, colors=colors)
246
  #material = trimesh.visual.texture.SimpleMaterial(image=image)
247
  #texture = trimesh.visual.TextureVisuals(uv=uv, image=image, material=material)