56 std::vector<std::reference_wrapper<const CSGUniverse>>
getAllUniverses()
const;
91 std::unordered_map<std::string, std::unique_ptr<CSGUniverse>>
_universes;
std::string name(const ElemQuality q)
std::vector< std::reference_wrapper< const CSGUniverse > > getAllUniverses() const
Get all the universes in CSGBase instance.
const CSGUniverse * _root_universe
root universe for the CSGBase instance
CSGUniverse creates an internal representation of a Constructive Solid Geometry (CSG) universe...
CSGUniverse & getUniverse(const std::string &name) const
Get a Universe from the list by its name.
CSGUniverseList creates a container for CSGUniverse objects to pass to CSGBase.
const CSGUniverse & getRoot() const
Get the root universe.
CSGUniverse & addUniverse(const std::string &name)
create an empty universe
void renameUniverse(const CSGUniverse &universe, const std::string &name)
rename the specified universe
std::unordered_map< std::string, std::unique_ptr< CSGUniverse > > _universes
Mapping of universe names to pointers of stored universe objects.
CSGUniverseList()
Default constructor.
CSGBase creates an internal representation of a Constructive Solid Geometry (CSG) model...
virtual ~CSGUniverseList()=default
Destructor.
std::unordered_map< std::string, std::unique_ptr< CSGUniverse > > & getUniverseListMap()
Get map of all names to universes in universe list.