Skip to content

Render widget#174

Draft
pshriwise wants to merge 15 commits intoopenmc-dev:developfrom
pshriwise:render
Draft

Render widget#174
pshriwise wants to merge 15 commits intoopenmc-dev:developfrom
pshriwise:render

Conversation

@pshriwise
Copy link
Collaborator

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

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

Successfully merging this pull request may close these issues.

1 participant