freealise commited on
Commit
e458830
1 Parent(s): f002fa4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -313,17 +313,17 @@ def get_mesh(image, depth, blur_data, loadall):
313
  #i = i+1
314
  #verts, clrs
315
 
316
- pcd = o3d.geometry.TriangleMesh.create_tetrahedron()
317
- pcd.compute_vertex_normals()
318
- pcd.paint_uniform_color((1.0, 1.0, 1.0))
319
- mesh.append(pcd)
320
- print(mesh[len(mesh)-1])
321
  mesh_n.append(str(fnum))
322
  print('mesh - ok')
323
 
324
  # Save as glb
325
  glb_file = tempfile.NamedTemporaryFile(suffix='.glb', delete=False)
326
- o3d.io.write_triangle_mesh(glb_file.name, pcd)
327
  print('file - ok')
328
  return "./TriangleWithoutIndices.gltf", glb_file.name, ",".join(mesh_n)
329
 
 
313
  #i = i+1
314
  #verts, clrs
315
 
316
+ #pcd = o3d.geometry.TriangleMesh.create_tetrahedron()
317
+ #pcd.compute_vertex_normals()
318
+ #pcd.paint_uniform_color((1.0, 1.0, 1.0))
319
+ #mesh.append(pcd)
320
+ #print(mesh[len(mesh)-1])
321
  mesh_n.append(str(fnum))
322
  print('mesh - ok')
323
 
324
  # Save as glb
325
  glb_file = tempfile.NamedTemporaryFile(suffix='.glb', delete=False)
326
+ #o3d.io.write_triangle_mesh(glb_file.name, pcd)
327
  print('file - ok')
328
  return "./TriangleWithoutIndices.gltf", glb_file.name, ",".join(mesh_n)
329