Repository navigation
Add Mouse Callback to VisualizerWithKeyCallback - #6760
Conversation
|
Thanks for submitting this pull request! The maintainers of this repository would appreciate if you could update the CHANGELOG.md based on your changes. |
|
Looks good in general. Needs testing. Thanks @organic-nailer |
|
Thank you for checking. @ssheorey |
|
By testing, I just meant someone other than the PR author trying out the example on a different computer. I've tried it out and it works fine. I've added your excellent python example to the |
|
@organic-nailer this PR just saved me a lot of pain, thank you for this! For more info, the idea is that depending on the state of an option (set with a keyboard callback) I'll either use my custom function or just use the mouse for camera control as usual. |
Type
Motivation and Context
Current Open3D Visualizer provides excellent 3D manipulation capabilities, but there are cases where developers may want to override its behavior. By introducing three additional callback functions for mouse events, developers will be able to handle mouse operations on their side only when necessary.
The addition of mouse operations has also been discussed in some issues: #2610 #4286
Checklist:
python util/check_style.py --applyto apply Open3D code styleto my code.
updated accordingly.
results (e.g. screenshots or numbers) here.
Description
I added three callbacks related to mouse event to VisualizerWithKeyCallback.
Usage:
Result:
L7PsZ0r5Xotk2nt6.mp4