-
Notifications
You must be signed in to change notification settings - Fork 135
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
Orientation cube in the viewer #26
Comments
This is a good idea; I'll have to think about the best way to implement it. |
This PR begins adding a View Cube at the request of #26. After this quick and dirty implementation, I'm not totally convinced the additional complexity and state are worth it. The camera movement functionality isn't necessary in a SCAD app, given the drawing occurs entirely from the code-editor and not the graphical editor. I may downgrade this to a simple orthonormal basis (to provide a quick reference for which direction is which).
Did a test implementation that you can try here, and after considering the added complexity:functionality trade-off, I might just split the difference and render a non-interactive orthonormal basis as a simple reference for scripting coordinate calculations. |
One of the main advantages of the cube is being able to click on a face, |
Ah, I'm used to that being a different tool. Again the FreeCAD version. First, showing a 45⁰ from every axis view: Then a front view after clicking on "Front": You can see that it also incorporates the axis hint graphic. All the light arrows and tabs at the edges of the cube are clickable to rotate around the 6DOF in 45⁰ increments. At least in the FreeCAD version, the cube can't be directly manipulated, just clicked through standard orientations. I keep trying to grab it to rotate it and instead snapping to a standard view by accident. ☺ |
@codri care to share what the keyboard shortcuts are? |
I don't believe I've implemented view orientation keyboard shortcuts 🙃 I assume, if implemented, the function would be something like a combination of the rotation code from here and the keyboard shortcuts from here. |
I love the idea of using an orientation cube in the viewer!!! It is perfect and rapid option when you need a 2D view of a specific plane (front for example). Can a version be implemented based on an orthographic camera also? |
It would be great to have a classic orientation cube in the viewer, that would indicate the camera orientation,
as well as allow for easy navigation between the views.
Is this a feature you think would be handy for the project?
Thanks
The text was updated successfully, but these errors were encountered: