ansys / ansys-tools-visualization-interface

A common visualizer for PyAnsys libraries.
https://visualization-interface.tools.docs.pyansys.com/
MIT License
7 stars 1 forks source link

Allow interactively picking the rotation center #130

Open greschd opened 3 weeks ago

greschd commented 3 weeks ago

📝 Description of the feature

When working with models whose dimensions are very unequal (e.g. a long tube-like model), it is important to be able to accurately set the rotation/zoom center.

Here's a video of a similar feature in Ansys Composite PrepPost (middle click changes rotation center [1]):

https://github.com/user-attachments/assets/19e9990f-7dab-4269-be25-2116849cde43

[1] it should be noted that middle click may not be the best hotkey, since it's often unavailable on Laptops. Maybe a "click a button - select new rotation center" flow would be more appropriate here

💡 Steps for implementing the feature

No response

🔗 Useful links and references

No response

ahernsean commented 3 weeks ago

Don't force one particular UI methodology (like middle click or one fixed button). Make setting the rotation center be an API call that users can then hook up as they wish.

greschd commented 3 weeks ago

Agreed; but I think we still ought to provide a sensible default experience. I mean, this goes for all interactions, right?

The video was just meant to showcase "set rotation center via mouse picking".