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

Show cross sections in 3-d when layout type is 3d #599

Open
pedson opened this issue Jun 9, 2024 · 1 comment
Open

Show cross sections in 3-d when layout type is 3d #599

pedson opened this issue Jun 9, 2024 · 1 comment

Comments

@pedson
Copy link

pedson commented Jun 9, 2024

Is there a way for the default cross sections (toggle in panel layout by "Show cross sections in 3-d") to be enabled when the layout is "3d"?

I've seen the python example of adding custom cross sections to the layout. But afaict, if you do that, when users toggle back to four panel you get both your custom cross sections and the default ones if they enable Show cross sections in 3-d.

We can add the custom ones, turn of Show cross sections in 3-d, and just let it be on the users if they decide to turn the default ones and effectively and double up. But it would be nice to simply have a way for the existing toggle to work for that layout type.

@jbms
Copy link
Collaborator

jbms commented Jun 10, 2024

The issue is that the default cross sections in the 4-panel and 2-panel views are exactly determined by what is shown on the screen --- i.e. the width and height of the cross section in the 3d view corresponds to the width and height of the cross-section panel. In the 3d-only view, there is no cross section panel and therefore the width and height of the cross section would need to be determined some other way. Additionally, the zoom level and orientation of the cross sections are also controlled via the cross section panels, and there would be no way to control that in the 3d-only view.

Certainly I imagine that reasonable solutions could be found for these issues, though.

I had the idea of adding a UI for configuring additional cross sections to the same menu that opens up when you hover over "x y z" at the top left of the 3d panel, but I haven't had a chance to implement that.

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

No branches or pull requests

2 participants