vt topology

This commit is contained in:
T.Alderighi 2018-12-21 12:55:18 +01:00
parent 9a7cdf7d56
commit b7b1bc63e7
2 changed files with 23 additions and 2 deletions

View File

@ -102,13 +102,30 @@ public:
};
template <class TetraType>
void VTStarVT( typename TetraType::VertexType* vp,
std::vector<TetraType *> &tetraVec,
std::vector<int> &indexes)
{
tetraVec.clear();
indexes.clear();
tetraVec.reserve(16);
indexes.reserve(16);
tetra::VTIterator<TetraType> vti(vp);
while(!vti.End())
{
tetraVec.push_back(vti.Vt());
indexes.push_back(vti.Vi());
++vti;
}
}
template <class TetraType>
void VVStarVT( typename TetraType::VertexPointer vp, std::vector<typename TetraType::VertexPointer> & starVec)
{
typedef typename TetraType::VertexPointer VertexPointer;
starVec.clear();
starVec.reserve(16);
VTIterator<TetraType> vti(vp);
while (!vti.End())

View File

@ -331,7 +331,11 @@ class Tetra
return oppVerts[indexF];
}
// static int EoppositeE ()
static int EoppositeE (const int & indexE)
{
assert(indexE < 6 && indexE >= 0);
return 5 - indexE;
}
/** @brief Computes the tetrahedron barycenter
*/
template <class TetraType>