Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

Select_down_sample blocks update_geometry

Open richardrl opened this issue 6 years ago • 2 comments

IMPORTANT: Please use the following template to report the bug.


Describe the bug Using select_down_sample gets you a downsampled pointcloud. However, this pointcloud does not work with the visualizer. calls to visualizer.update_geometry(downsampled_pcd) do not have any effect; only the initial pointcloud is shown in the visualizer.

To Reproduce ` downsampled_pcd = pcd.select_down_sample(plane_idxs, invert=True)

while True: vis.update_geometry(downsampled_pcd) `

Expected behavior The visualizer should show the latest pointcloud.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: [e.g. OSX Mojave, Ubuntu 16.04, Windows 10.0]
  • Python version:
  • Open3D version:
  • Is this remote workstation?: yes or no
  • How did you install Open3D?: pip or conda or build_from_source (provide build method, such as GCC, Xcode, Visual Studio, and so on)

Additional context Add any other context about the problem here.

richardrl avatar Feb 11 '20 06:02 richardrl

down_sample will decrease no of points in cloud and its working fine refer doc here #1287 down_cloud

maybe you are trying to zoom_out point cloud for that refer https://github.com/intel-isl/Open3D/issues/828 use ctr.scale for zoom_out

g2ragrawal avatar Feb 11 '20 07:02 g2ragrawal

The problem seems to be that select_down_sample produces a new PointCloud. So, visualizer does not have a reference to it and can not update it (Given that you called add_geometry with pcd, not with downsampled_pcd). To make update_geometry work, you will need to call add_geometry with downsampled_pcd.

griegler avatar Feb 11 '20 07:02 griegler