|
Celeritas 0.7.0-dev.161+develop.301cbc939
|
CSG operations on Object instances: negation, union, intersection. More...

Classes | |
| class | celeritas::orangeinp::NegatedObject |
| Everywhere but the embedded object. More... | |
| class | celeritas::orangeinp::JoinObjects< Op > |
| Join all of the given objects with an intersection or union. More... | |
Typedefs | |
| using | celeritas::orangeinp::AnyObjects = JoinObjects< op_or > |
| Union of the given objects. | |
| using | celeritas::orangeinp::AllObjects = JoinObjects< op_and > |
| Intersection of the given objects. | |
| using | celeritas::orangeinp::SPConstObject = std::shared_ptr< ObjectInterface const > |
| Shared pointer to an object. | |
| using | celeritas::orangeinp::VecSenseObj = std::vector< std::pair< Sense, SPConstObject > > |
| Type used for defining a Region Definition Vector (RDV) | |
Functions | |
| std::shared_ptr< AllObjects const > | celeritas::orangeinp::make_subtraction (std::string &&label, SPConstObject const &minuend, SPConstObject const &subtrahend) |
| Make a new object that is the second object subtracted from the first. | |
| std::shared_ptr< AllObjects const > | celeritas::orangeinp::make_rdv (std::string &&label, VecSenseObj &&inp) |
| Make a combination of possibly negated objects. | |
CSG operations on Object instances: negation, union, intersection.
| std::shared_ptr< AllObjects const > celeritas::orangeinp::make_rdv | ( | std::string && | label, |
| VecSenseObj && | inp | ||
| ) |
Make a combination of possibly negated objects.
The Region Definition Vector (RDV) is an intersection of objects and/or their negations. It is the KENO/SCALE [kenovi] way for defining media, boundaries, etc. It must not be empty.
| std::shared_ptr< AllObjects const > celeritas::orangeinp::make_subtraction | ( | std::string && | label, |
| SPConstObject const & | minuend, | ||
| SPConstObject const & | subtrahend | ||
| ) |
Make a new object that is the second object subtracted from the first.
This just takes the intersection the first object and the negated second:
A - B <=> A & ~B