You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Design UI for Geometry panel for Geant4 with tree view and object details + Detector geometry #2008
Think which solids would we like to support. Box+Cylinder+Sphere covers 95% of cases. There should be some "advanced" option to add more complicated solids.
I think its also crucial to design what happens under right mouse click, as the crucial features like "Duplicate" or "Delete" will be there.
We could add icon and coloring support for TreeView and use them to provide more information at a glance
For instance, show geometry primitives and indicate which object functions as a detector (from what I understand, Geant4 "detector" is a regular object with some special configuration)
I am thinking about taking this further and represent some properties as pseudo objects in tree as in Blender
but I also think that would be too complicated to implement and maybe not worth the effort
The detector object may completely unrelated to any of the items in the tree inside HIERARCHY panel.
Each of the shapes in HIERARCHY has attach material.
Detector object doesn't have any material attached.
In principle you can have a hierarchy of Spheres with some materials attached and then on top of that
scoring dose in box centered around (0,0,0) with side of 10cm, divided into 10 slices along Z, as follows:
Activity
kmichalikk commentedon Apr 18, 2025
First draft of the tree structure
Contents of the menus is still in progress
grzanka commentedon Apr 28, 2025
Think which solids would we like to support. Box+Cylinder+Sphere covers 95% of cases. There should be some "advanced" option to add more complicated solids.
I think its also crucial to design what happens under right mouse click, as the crucial features like "Duplicate" or "Delete" will be there.
grzanka commentedon Apr 28, 2025
It would be nice (I think in general) to have an option to specify "Drawing region" like in PHIG-3D:
https://www.youtube.com/watch?v=_RYiDC0gMws
kmichalikk commentedon May 11, 2025
I tried to sum up what functionalities we need
The HIERARCHY panel shows the hierarchy of objects placed on the scene.
The INFORMATION panel allows to change object name, we leave it as-is
The MATERIAL panel is shown only when an object is selected
The DETECTOR panel is shown only when an object is selected
kmichalikk commentedon May 11, 2025
kmichalikk commentedon May 11, 2025
We could add icon and coloring support for TreeView and use them to provide more information at a glance
For instance, show geometry primitives and indicate which object functions as a detector (from what I understand, Geant4 "detector" is a regular object with some special configuration)
I am thinking about taking this further and represent some properties as pseudo objects in tree as in Blender
but I also think that would be too complicated to implement and maybe not worth the effort
grzanka commentedon May 12, 2025
The detector object may completely unrelated to any of the items in the tree inside HIERARCHY panel.
Each of the shapes in HIERARCHY has attach material.
Detector object doesn't have any material attached.
Check this:
https://geant4.web.cern.ch/documentation/dev/bfad_html/ForApplicationDevelopers/Detector/commandScore.html
Take a look on example here:
https://github.com/ostatni5/geant4-wasm-performance/blob/main/example/B1/exampleB1.in
In principle you can have a hierarchy of Spheres with some materials attached and then on top of that
scoring dose in box centered around (0,0,0) with side of 10cm, divided into 10 slices along Z, as follows:
Such mesh can be translated/rotated.
See also https://github.com/Geant4/geant4/blob/20a218bbe1d8b4a78f819e396f8be615e6a38358/source/digits_hits/utils/src/G4ScoringMessenger.cc#L76 for more options.
kmichalikk commentedon May 13, 2025
Okay, then the DETECTOR panel will be left as-is, but I will add Rotation inputs
kmichalikk commentedon Oct 2, 2025
The bulk of the task is done in #2165. Further development, if need be, will be done in new issues/PRs.