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

initial proof of concept for space navigator 3d mouse support #413

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

justbuchanan
Copy link
Member

@justbuchanan justbuchanan commented Nov 5, 2023

This is only partially working and isn't ready for a full review yet. Sending this now to get feed back on a couple things:

  • Assuming I clean this up and get it working well, is this something you'd like to merge into cq-editor?
  • Any suggestions on where this code should live? Is occt_widget.py the right place for it?

Things left to be done:

  • there seems to be some lag / delayed effect. When you stop moving the mouse, the view keeps changing for a bit
  • see if we can use the pyspacemouse callback API rather than periodically polling for new mouse values
  • handle mouse connects/disconnects while cq-editor is running. Right now if you plug in the mouse after running cq-editor, you'd have to restart it to get it to notice the mouse. Since this requires periodically polling for the mouse, we'll want it to be a default-off toggle in preferences.
  • only pan and zoom are supported - more work is needed for rotation
  • the math / scale factors for mapping mouse values to pan/rotate/zoom are pretty terrible
  • ?

Addresses #412

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.

None yet

1 participant