79 std::vector<std::reference_wrapper<const CSGCell>>
getAllCells()
const;
107 std::unordered_map<std::string, std::unique_ptr<CSGCell>>
_cells;
std::string name(const ElemQuality q)
CSGCell & addCell(std::unique_ptr< CSGCell > cell)
add a cell to the CellList.
CSGCell & getCell(const std::string &name) const
Get the CSGCell by name.
CSGRegions creates an internal representation of a CSG region, which can refer to an intersection...
CSGCellList creates a container for CSGCell objects to pass to CSGBase object.
CSGCellList()
Default constructor.
std::unordered_map< std::string, std::unique_ptr< CSGCell > > & getCellListMap()
Get map of all names to cells in cell list.
CSGCell & addVoidCell(const std::string &name, const CSGRegion ®ion)
Add a Void Cell object cell list.
std::vector< std::reference_wrapper< const CSGCell > > getAllCells() const
Get all the cells in CSGBase instance.
CSGUniverse creates an internal representation of a Constructive Solid Geometry (CSG) universe...
CSGCell & addMaterialCell(const std::string &name, const std::string &mat_name, const CSGRegion ®ion)
Add a Material Cell object to cell list.
CSGCell & addUniverseCell(const std::string &name, const CSGUniverse &univ, const CSGRegion ®ion)
Add a Universe Cell object to cell list.
virtual ~CSGCellList()=default
Destructor.
CSGCell creates an internal representation of a Constructive Solid Geometry (CSG) cell...
void renameCell(const CSGCell &cell, const std::string &name)
rename the specified cell
std::unordered_map< std::string, std::unique_ptr< CSGCell > > _cells
Mapping of cell names to pointers of stored cell objects.
CSGBase creates an internal representation of a Constructive Solid Geometry (CSG) model...