jihyeonj commited on
Commit
0b7b3bd
·
verified ·
1 Parent(s): 006782a

updated path

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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/{mesh_path.split['/'][-1].split('.')[0]}_{plane_idx}.obj"
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