isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.21k stars 2.28k forks source link

[Question] Using VisualizerWithVertexSelection to edit point cloud #3935

Open napopano opened 3 years ago

napopano commented 3 years ago

I want to select points in a rectangular region and remove them from the point cloud. I am using VisualizerWithVertexSelection to select the points but haven't been successful so far in removing the points. I tried calling PointCloud.select_by_index() to get a new point cloud without the point indices selected. That works but then updating the geometry of the visualizer with the new point cloud does nothing. Is there a way to accomplish what I want?

napopano commented 3 years ago

I figured it out. The key was to pass in a None arg to VisualizerWithVertexSelection.update_geometry(). This is not clear without reading the implementation. The geometry parameter should be removed from the API to avoid confusion.

giuliano-flya commented 7 months ago

The geometry parameter should be removed from the API to avoid confusion.

This. This is very confusing, I spent a good one day trying to figure why this didn't work, thanks :pray: