Spaces:
Runtime error
Runtime error
jens
commited on
Commit
·
6303b23
1
Parent(s):
2911be1
flip axis
Browse files- inference.py +1 -1
inference.py
CHANGED
|
@@ -82,7 +82,7 @@ class DepthPredictor:
|
|
| 82 |
# Create cubes and add them to the mesh
|
| 83 |
for point, color in zip(point_cloud, color_array):
|
| 84 |
cube = o3d.geometry.TriangleMesh.create_box(width=0.000005, height=0.000005, depth=0.000005)
|
| 85 |
-
cube.translate(point)
|
| 86 |
cube.paint_uniform_color(color)
|
| 87 |
mesh += cube
|
| 88 |
# Save the mesh to an .obj file
|
|
|
|
| 82 |
# Create cubes and add them to the mesh
|
| 83 |
for point, color in zip(point_cloud, color_array):
|
| 84 |
cube = o3d.geometry.TriangleMesh.create_box(width=0.000005, height=0.000005, depth=0.000005)
|
| 85 |
+
cube.translate(-point)
|
| 86 |
cube.paint_uniform_color(color)
|
| 87 |
mesh += cube
|
| 88 |
# Save the mesh to an .obj file
|