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

Persistent intermediate objects #114

Open
alberto743 opened this issue Apr 30, 2024 · 3 comments
Open

Persistent intermediate objects #114

alberto743 opened this issue Apr 30, 2024 · 3 comments

Comments

@alberto743
Copy link
Member

It would be useful to have persistent/serializable output objects storing the CSG representation, in order to trigger the output data format drivers (e.g. MCNP, OpenMC, etc.) thereafter.

@shimwell
Copy link
Collaborator

shimwell commented May 14, 2024

partly addressed in PR #144 which splits the start method into two parts allowing

@alberto743
Copy link
Member Author

I guess that this kind of modification may require some substantial redesign of the objects, so that each of them will expose some introspection and explicit serialization drivers.
Probably we may keep this issue as reference as a part of the refactoring.

@shimwell
Copy link
Collaborator

There are now some class attributes that get generated during the start() method that can be accessed if that helps

import geouned
geo = geouned.CadToCsg(stepFile='example.stp')
geo.start()
print(geo.UniverseBox)
print(geo.MetaList)
print(geo.Surfaces)

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