compiler error in appveyor
This commit is contained in:
parent
fc8d50cd2b
commit
6c3c940e34
|
@ -47,7 +47,7 @@ public:
|
|||
//Empty vertexref
|
||||
inline typename T::VertexType * & V( const int ) { assert(0); static typename T::VertexType *vp=0; return vp; }
|
||||
inline typename T::VertexType * const & V( const int ) const { assert(0); static typename T::VertexType *vp=0; return vp; }
|
||||
inline typename T::VertexType * const cV( const int ) const { assert(0); static typename T::VertexType *vp=0; return vp; }
|
||||
inline typename T::VertexType * const cV( const int ) { assert(0); static typename T::VertexType *vp=0; return vp; }
|
||||
inline typename T::CoordType & P( const int ) { assert(0); static typename T::CoordType coord(0, 0, 0); return coord; }
|
||||
inline const typename T::CoordType & P( const int ) const { assert(0); static typename T::CoordType coord(0, 0, 0); return coord; }
|
||||
inline const typename T::CoordType &cP( const int ) const { assert(0); static typename T::CoordType coord(0, 0, 0); return coord; }
|
||||
|
@ -178,7 +178,7 @@ public:
|
|||
typedef typename T::VertexType::ScalarType ScalarType;
|
||||
|
||||
inline typename T::VertexType * & V( const int j ) { assert(j>=0 && j<4); return v[j]; }
|
||||
inline typename T::VertexType * const cV( const int j ) const { assert(j>=0 && j<4); return v[j]; }
|
||||
inline typename T::VertexType * const cV( const int j ) { assert(j>=0 && j<4); return v[j]; }
|
||||
|
||||
inline size_t cFtoVi (const int f, const int j) const { assert(f >= 0 && f < 4); assert(j >= 0 && j < 3); return findices[f][j]; }
|
||||
|
||||
|
|
|
@ -36,29 +36,6 @@ namespace tetra {
|
|||
/** \addtogroup tetra */
|
||||
/*@{*/
|
||||
|
||||
|
||||
template <class TetraType>
|
||||
void VVStarVT( typename TetraType::VertexPointer vp, std::vector<typename TetraType::VertexPointer> & starVec)
|
||||
{
|
||||
typedef typename TetraType::VertexPointer VertexPointer;
|
||||
|
||||
starVec.clear();
|
||||
|
||||
tetra::VTIterator<TetraType> vti(vp->VTp(), vp->VTi());
|
||||
|
||||
while (!vti.End())
|
||||
{
|
||||
starVec.push_back(vti.Vt()->V1(vti.Vi()));
|
||||
starVec.push_back(vti.Vt()->V2(vti.Vi()));
|
||||
starVec.push_back(vti.Vt()->V3(vti.Vi()));
|
||||
++vti;
|
||||
}
|
||||
|
||||
std::sort(starVec.begin(), starVec.end());
|
||||
typename std::vector<VertexPointer>::iterator new_end = std::unique(starVec.begin(),starVec.end());
|
||||
starVec.resize(new_end - starVec.begin());
|
||||
}
|
||||
|
||||
/** Class VTIterator.
|
||||
This is a vertex - tetrahedron iterator
|
||||
@param MTTYPE (Template Parameter) Specifies the type of the tetrahedron.
|
||||
|
@ -119,6 +96,27 @@ public:
|
|||
|
||||
};
|
||||
|
||||
template <class TetraType>
|
||||
void VVStarVT( typename TetraType::VertexPointer vp, std::vector<typename TetraType::VertexPointer> & starVec)
|
||||
{
|
||||
typedef typename TetraType::VertexPointer VertexPointer;
|
||||
|
||||
starVec.clear();
|
||||
|
||||
VTIterator<TetraType> vti(vp->VTp(), vp->VTi());
|
||||
|
||||
while (!vti.End())
|
||||
{
|
||||
starVec.push_back(vti.Vt()->V1(vti.Vi()));
|
||||
starVec.push_back(vti.Vt()->V2(vti.Vi()));
|
||||
starVec.push_back(vti.Vt()->V3(vti.Vi()));
|
||||
++vti;
|
||||
}
|
||||
|
||||
std::sort(starVec.begin(), starVec.end());
|
||||
typename std::vector<VertexPointer>::iterator new_end = std::unique(starVec.begin(),starVec.end());
|
||||
starVec.resize(new_end - starVec.begin());
|
||||
}
|
||||
|
||||
/** Templated over the class tetrahedron, it stores a \em position over a tetrahedron in a mesh.
|
||||
It contain a pointer to the current tetrahedron,
|
||||
|
|
Loading…
Reference in New Issue