Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a rendering widget to the plotter based on the raytracing plot capability in OpenMC. A big thanks to @gridley for submitting the enabling-feature in OpenMC originally!
A rendering window can be opened using a "Render" button in the Geometry panel. An orbit camera implementation has been provided.
Colors of domains in the render widget and main window are synchronized and can be changed in either place. Live camera parameters are provided in the widget to provide a frame of reference for slice plots. Domain visibility can be toggled and the light source position can be modified independently of the camera position if desired.
There are a litany of new features that come to mind with this tool, but I don't want to submit something overwhelming.
A good amount of this was generated with Codex, so I'm marking it as a draft while I review it and get feedback from others in the meantime.
Demos:
Pincell
Screencast.from.2026-02-16.12-07-10.webm
TRISO Assembly
I'm really pleased that we can view these models interactively. I was surprised at this.
Screencast.from.2026-02-16.12-09-31.webm
DAGMC Model (Utah Teapot)
This one isn't quite as interactive as I'd like. I have an idea or two as to why, but it's also possible we might simply be stuck with that for DAGMC models at present.
Screencast.from.2026-02-16.12-23-16.webm