43 const bool ignore_identical_lattice =
false);
71 const std::unordered_map<std::string, std::unique_ptr<CSGLattice>> &
getLatticeListMap()
const 81 std::vector<std::reference_wrapper<const CSGLattice>>
getAllLattices()
const;
106 std::unordered_map<std::string, std::unique_ptr<CSGLattice>>
_lattices;
std::string name(const ElemQuality q)
CSGLattice & addLattice(std::unique_ptr< CSGLattice > lattice, const bool ignore_identical_lattice=false)
add an existing lattice to list.
bool operator!=(const CSGLatticeList &other) const
Operator overload for checking if two CSGLatticeList objects are not equal.
std::vector< std::reference_wrapper< const CSGLattice > > getAllLattices() const
Get all the lattices in CSGBase instance.
void renameLattice(const CSGLattice &lattice, const std::string &name)
rename the specified lattice
CSGLatticeList creates a container for CSGLattice objects to pass to CSGBase.
std::unordered_map< std::string, std::unique_ptr< CSGLattice > > _lattices
Mapping of lattice names to pointers of stored lattice objects.
CSGLattice is the abstract class for defining lattices.
CSGLatticeList()
Default constructor.
bool hasLattice(const std::string &name) const
return whether lattice with given name exists in lattice list
std::unordered_map< std::string, std::unique_ptr< CSGLattice > > & getLatticeListMap()
Get map of all names to lattices in lattice list.
const std::unordered_map< std::string, std::unique_ptr< CSGLattice > > & getLatticeListMap() const
Get const map of all names to lattices in lattice list.
bool operator==(const CSGLatticeList &other) const
Operator overload for checking if two CSGLatticeList objects are equal.
CSGBase creates an internal representation of a Constructive Solid Geometry (CSG) model...
virtual ~CSGLatticeList()=default
Destructor.
CSGLattice & getLattice(const std::string &name) const
Get a Lattice from the list by its name.