vt topology
This commit is contained in:
parent
9a7cdf7d56
commit
b7b1bc63e7
|
@ -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>
|
template <class TetraType>
|
||||||
void VVStarVT( typename TetraType::VertexPointer vp, std::vector<typename TetraType::VertexPointer> & starVec)
|
void VVStarVT( typename TetraType::VertexPointer vp, std::vector<typename TetraType::VertexPointer> & starVec)
|
||||||
{
|
{
|
||||||
typedef typename TetraType::VertexPointer VertexPointer;
|
typedef typename TetraType::VertexPointer VertexPointer;
|
||||||
|
|
||||||
starVec.clear();
|
starVec.clear();
|
||||||
|
starVec.reserve(16);
|
||||||
VTIterator<TetraType> vti(vp);
|
VTIterator<TetraType> vti(vp);
|
||||||
|
|
||||||
while (!vti.End())
|
while (!vti.End())
|
||||||
|
|
|
@ -331,7 +331,11 @@ class Tetra
|
||||||
return oppVerts[indexF];
|
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
|
/** @brief Computes the tetrahedron barycenter
|
||||||
*/
|
*/
|
||||||
template <class TetraType>
|
template <class TetraType>
|
||||||
|
|
Loading…
Reference in New Issue