22 lines
455 B
C++
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 {};
|
|
}
|