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

Option to fix vertical cross section in 3D viewer GUI #53

Open
TomFarley opened this issue Nov 18, 2019 · 1 comment
Open

Option to fix vertical cross section in 3D viewer GUI #53

TomFarley opened this issue Nov 18, 2019 · 1 comment

Comments

@TomFarley
Copy link
Collaborator

It would be really nice to be able to select a check box in the 3D viewer GUI to force the cross-section cut to always be in a vertical plane (perhaps just through the origin if the cursor is more difficult) rather than the default of the plane whose normal is the viewing direction.

I don't know how difficult this would be to implement, but it would enable some really nice figures where you have a cross section of the machine, but could have a tilted view eg looking down at the divertor tiles you are interested in.

@ssilburn
Copy link
Collaborator

Yep agreed this would be really good! But it will need a complete change in how the cross-sectioning is implemented. At the moment I "cheat" and do the cross-sectioning by setting the rendering clipping distance of the camera to achieve a cross-section, which makes the cross-section plane necesserily normal to the view direction. To implement what you suggest here I'd have to change to doing boolean operations on the 3D geometry. Should be perfectly possible to do and as you say it would allow some really nice figure making, but also would probably be a lot slower than the current implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants