stuff-from-scratch/src/mesh/AbstractFace.cpp
2022-11-17 17:33:48 +00:00

22 lines
455 B
C++

#include "AbstractFace.h"
AbstractFace::AbstractFace(unsigned id)
: mId(id)
{
}
void AbstractFace::addVectorAttribute(const std::string& tag, const std::vector<double>& values)
{
mVectorAttributes[tag] = values;
}
std::vector<double> AbstractFace::getVectorAttribute(const std::string& tag) const
{
auto iter = mVectorAttributes.find(tag);
if (iter != mVectorAttributes.end())
{
return iter->second;
}
return {};
}