Start adding grid
This commit is contained in:
parent
9301769d58
commit
f04d86e0ad
37 changed files with 709 additions and 211 deletions
22
src/mesh/AbstractFace.cpp
Normal file
22
src/mesh/AbstractFace.cpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
#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 {};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue