Spaces:
Running
Running
Update app.py
Browse files
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=
|
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)
|