Spaces:
Sleeping
Sleeping
Update demo_support/utils.py
Browse files- demo_support/utils.py +2 -2
demo_support/utils.py
CHANGED
@@ -165,8 +165,8 @@ def render_pc(pc):
|
|
165 |
rgb = (pc[:, 3:] * 255).astype(numpy.uint8)
|
166 |
g = go.Scatter3d(
|
167 |
x=pc[:, 0], y=pc[:, 1], z=pc[:, 2],
|
168 |
-
|
169 |
-
|
170 |
)
|
171 |
fig = go.Figure(data=[g])
|
172 |
fig.update_layout(scene_camera=dict(up=dict(x=0, y=1, z=0)))
|
|
|
165 |
rgb = (pc[:, 3:] * 255).astype(numpy.uint8)
|
166 |
g = go.Scatter3d(
|
167 |
x=pc[:, 0], y=pc[:, 1], z=pc[:, 2],
|
168 |
+
mode='markers',
|
169 |
+
marker=dict(size=10, color=[f'rgb({rgb[i, 0]}, {rgb[i, 1]}, {rgb[i, 2]})' for i in range(len(pc))]),
|
170 |
)
|
171 |
fig = go.Figure(data=[g])
|
172 |
fig.update_layout(scene_camera=dict(up=dict(x=0, y=1, z=0)))
|