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

How to "plot" binary trees? #57

Open
ggalgoczi opened this issue Nov 12, 2024 · 4 comments
Open

How to "plot" binary trees? #57

ggalgoczi opened this issue Nov 12, 2024 · 4 comments

Comments

@ggalgoczi
Copy link
Collaborator

There should be a code somewhere in the repo, I could not find it. Do you happen to find it @plexoos ?

Should get a result similar to this:

image

@plexoos
Copy link
Member

plexoos commented Nov 12, 2024

I was looking for exactly that functionality but also could not find it in the code using OptiX7. What makes you think that it is still relevant?
I don't understand what your posted image represents or how you constructed it.

@ggalgoczi
Copy link
Collaborator Author

ggalgoczi commented Nov 12, 2024

In #26 I posted the proof that analytic geometry is uploaded into the GPU. I tracked the pfRICH geom conversion until CSG/CSGFoundry, still need to check the GPU structure. Also the render I created for pfRICH is not triangulated (issue #55).

The plot I shared here is from a presentation on Opticks.

@ggalgoczi
Copy link
Collaborator Author

Following up on this:

I called CSGFoundry::descGAS() on esi-g4ox/geom/pfrich_opticks.gdml

It returned:

num_total 1 num_solid 1 num_prim 912 num_node 1326 num_plan 0 num_tran 1118 num_itra 1118 num_inst 1 gas 1 meshname 105 mmlabel 1 mtime 1731428601 mtimestamp 20241112_162321 sim Y

Since there are ~150 physical volumes in the GDML if you triangulate all you can not end up with 921 primitives IMO.

This is what is passed to the Shader Biding Table and gets pushed to the GPU.

@ggalgoczi
Copy link
Collaborator Author

Many useful details here: https://www.epj-conferences.org/articles/epjconf/pdf/2019/19/epjconf_chep2018_02027.pdf

Will need to check Solid Serialization and Translation from Geant4 Solids

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