25 if (*it.second == *mat) {
31 const std::string key =
"material_" + mat->
getName();
33 throw std::runtime_error(
34 "Material name " + mat->
getName()
35 +
" used more than once, which is not supported by Python exporter");
43 if (it.second == unique_mat)
Defines the macro ASSERT.
#define ASSERT(condition)
Defines class MaterialKeyHandler.
Defines and implements class Material.
const std::map< const std::string, const Material * > & materialMap() const
void insertMaterial(const Material *sample)
const std::string & mat2key(const Material *sample) const
std::map< const Material *, const Material * > m_Mat2Unique
std::map< const std::string, const Material * > m_Key2Mat
A wrapper for underlying material implementation.
std::string getName() const
Returns the name of material.