-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add proto-universe and CSG Unit construction #1148
Conversation
|
||
//---------------------------------------------------------------------------// | ||
/*! | ||
* Construct a universe for building ORANGE geometry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an ORANGE geometry
/*! | ||
* Get a list of all daughter protos. | ||
*/ | ||
auto UnitProto::daughters() const -> VecProto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this is enough work to cross into "calc_daughters"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe... maybe get_daughters
? I'll revisit this.
This is the next-to-last step for programmatically building an ORANGE geometry from CSG objects. It defines a "proto-universe" interface for defining individual universes (aka "scenes") and building them. For testing and external integration with SCALE, the
UnitProto
class has a helper function for returning a CsgUnit which makes testing a cinch.The following PR will take the constructed CSG unit, build a UniverseInput, and actually construct an OrangeParams object for tracking.