48 std::vector<std::reference_wrapper<const CSGSurface>>
getAllSurfaces()
const;
77 std::unordered_map<std::string, std::unique_ptr<CSGSurface>>
_surfaces;
CSGSurface & getSurface(const std::string &name) const
Get a surface by name.
std::vector< std::reference_wrapper< const CSGSurface > > getAllSurfaces() const
Get list of references to all surfaces in surface list.
std::unordered_map< std::string, std::unique_ptr< CSGSurface > > _surfaces
Mapping of surface names to pointers of stored surface objects.
void renameSurface(const CSGSurface &surface, const std::string &name)
rename the specified surface
std::unordered_map< std::string, std::unique_ptr< CSGSurface > > & getSurfaceListMap()
Get map of all names to surfaces in surface list.
virtual ~CSGSurfaceList()=default
Destructor.
CSGSurfaceList()
Default constructor.
CSGSurfaceList is a container for storing CSGSurface objects in the CSGBase object.
CSGSurface creates an internal representation of a Constructive Solid Geometry (CSG) surface...
CSGSurface & addSurface(std::unique_ptr< CSGSurface > surf)
add a surface object to existing SurfaceList.
CSGBase creates an internal representation of a Constructive Solid Geometry (CSG) model...