Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -96,8 +96,9 @@ def image2mesh(
|
|
96 |
mesh = generate_mesh(image, resolution)
|
97 |
|
98 |
if simplify:
|
99 |
-
|
100 |
simplify_ratio=simplify_ratio, fill_holes=False, verbose=True)
|
|
|
101 |
|
102 |
mesh_path = os.path.join(output_path, f'{uid}.obj')
|
103 |
mesh.export(
|
|
|
96 |
mesh = generate_mesh(image, resolution)
|
97 |
|
98 |
if simplify:
|
99 |
+
filled_mesh = postprocess_mesh(mesh.vertices, mesh.faces, simplify=simplify,
|
100 |
simplify_ratio=simplify_ratio, fill_holes=False, verbose=True)
|
101 |
+
mesh = trimesh.Trimesh(vertices=filled_mesh[0], faces=filled_mesh[1])
|
102 |
|
103 |
mesh_path = os.path.join(output_path, f'{uid}.obj')
|
104 |
mesh.export(
|