CQ-editor icon indicating copy to clipboard operation
CQ-editor copied to clipboard

initial proof of concept for space navigator 3d mouse support

Open justbuchanan opened this issue 2 years ago • 2 comments

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

justbuchanan avatar Nov 05 '23 03:11 justbuchanan

@justbuchanan Are you still interested in working on this?

jmwright avatar Feb 18 '25 01:02 jmwright

Yeah I'll take a look at this again. I may not get to it soon, but I would like to get this implemented eventually if it's something you'd like to include in cq-editor.

Feel free to keep this PR open or close it - I can open a new one if/when I'm able to get this into a usable state.

justbuchanan avatar Feb 21 '25 19:02 justbuchanan