Celeritas
0.5.0-56+6b053cd
|
Return a "name" for a face. More...
#include <FaceNamer.hh>
Public Member Functions | |
FaceNamer (std::string &&prefix) | |
Construct with prefix. | |
template<class S > | |
std::string | operator() (Sense s, S const &surf) |
Apply to a surface with known type. | |
std::string | operator() (Sense s, VariantSurface const &surf) |
Apply to a surface with unknown type. | |
std::string | operator() (std::string const &s) const |
Apply with an explicit face name. More... | |
Return a "name" for a face.
This is generally a very short string to be used as an extension for a volume comprised of several intersecting surface half-spaces. Because successive surfaces should have separate names, this has a small internal state.
|
inline |
Apply with an explicit face name.
This can be useful for instances such as "generic trapezoid" where the surface type can change based on whether the face is planar or twisted.