Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -301,7 +301,7 @@ def get_mesh(image, depth, blur_data, loadall):
|
|
301 |
|
302 |
#mesh = trimesh.Trimesh(vertices=verts, faces=triangles, vertex_colors=colors)
|
303 |
mesh.append(trimesh.PointCloud(verts, colors=clrs))
|
304 |
-
mesh[len(mesh)-1]
|
305 |
#material = trimesh.visual.texture.SimpleMaterial(image=image)
|
306 |
#texture = trimesh.visual.TextureVisuals(uv=uv, image=image, material=material)
|
307 |
#mesh.visual = texture
|
|
|
301 |
|
302 |
#mesh = trimesh.Trimesh(vertices=verts, faces=triangles, vertex_colors=colors)
|
303 |
mesh.append(trimesh.PointCloud(verts, colors=clrs))
|
304 |
+
mesh[len(mesh)-1].merge_vertices()
|
305 |
#material = trimesh.visual.texture.SimpleMaterial(image=image)
|
306 |
#texture = trimesh.visual.TextureVisuals(uv=uv, image=image, material=material)
|
307 |
#mesh.visual = texture
|