Spaces:
Sleeping
Sleeping
updated path
Browse files
app.py
CHANGED
@@ -218,7 +218,7 @@ def create_scene(mesh_path, dicts, plane_idx):
|
|
218 |
newplane = dicts[plane_idx]['plane']
|
219 |
newplane.visual.vertex_colors = np.tile([100, 100, 100, 100], (4, 1))
|
220 |
scene = trimesh.Scene([mesh, newplane])
|
221 |
-
temp_file = f"/tmp/{
|
222 |
scene.export(temp_file)
|
223 |
return temp_file
|
224 |
|
|
|
218 |
newplane = dicts[plane_idx]['plane']
|
219 |
newplane.visual.vertex_colors = np.tile([100, 100, 100, 100], (4, 1))
|
220 |
scene = trimesh.Scene([mesh, newplane])
|
221 |
+
temp_file = f"/tmp/scene_{plane_idx}.obj"
|
222 |
scene.export(temp_file)
|
223 |
return temp_file
|
224 |
|