Spaces:
Running
on
Zero
Running
on
Zero
test push to force update
Browse files
app.py
CHANGED
|
@@ -96,7 +96,7 @@ def generate_3d_model(depth, image_path, focallength_px):
|
|
| 96 |
# Create the mesh using Trimesh with vertex colors
|
| 97 |
mesh = trimesh.Trimesh(vertices=vertices, faces=faces, vertex_colors=colors)
|
| 98 |
|
| 99 |
-
# Export the mesh to an OBJ file
|
| 100 |
model_path = 'output_model.obj'
|
| 101 |
mesh.export(model_path)
|
| 102 |
return model_path
|
|
|
|
| 96 |
# Create the mesh using Trimesh with vertex colors
|
| 97 |
mesh = trimesh.Trimesh(vertices=vertices, faces=faces, vertex_colors=colors)
|
| 98 |
|
| 99 |
+
# Export the mesh to an OBJ file .
|
| 100 |
model_path = 'output_model.obj'
|
| 101 |
mesh.export(model_path)
|
| 102 |
return model_path
|