Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interface for get cropped geometry from VisualizerWithEditing class #5171

Merged

Conversation

yuecideng
Copy link
Collaborator

@yuecideng yuecideng commented Jun 9, 2022

  1. Add a function get_cropped_geometry to get the final cropped geometry from VisualizerWithEditing.
  2. Seperate saving cropping results from key press C to another key press S.
  3. The current workflow maybe like this:
vis = o3d.visualization.VisualizerWithEditing()
vis.create_window()
# pointcloud or trianglemesh
vis.add_geometry(geometry)
vis.run()
# do cropping once or multiple times, press key `C` to crop selected geometry and `S` to save it into file.
vis.destroy_window()
# get cropped result to do somthing else
cropped_geometry= vis.get_cropped_geometry()

This change is Reviewable

@update-docs
Copy link

update-docs bot commented Jun 9, 2022

Thanks for submitting this pull request! The maintainers of this repository would appreciate if you could update the CHANGELOG.md based on your changes.

@yxlao yxlao merged commit 1c725dd into isl-org:master Jun 9, 2022
@yuecideng yuecideng deleted the yuecideng/GetCroppingResultInVisualizer branch June 10, 2022 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants