#include "is_manifold.h" #include template IGL_INLINE bool igl::is_manifold(const Eigen::PlainObjectBase& /*V*/, const Eigen::PlainObjectBase& F) { std::vector > TTT; for(int f=0;f v2) std::swap(v1,v2); std::vector r(4); r[0] = v1; r[1] = v2; r[2] = f; r[3] = i; TTT.push_back(r); } std::sort(TTT.begin(),TTT.end()); for(int i=2;i<(int)TTT.size();++i) { std::vector& r1 = TTT[i-2]; std::vector& r2 = TTT[i-1]; std::vector& r3 = TTT[i]; if ( (r1[0] == r2[0] && r2[0] == r3[0]) && (r1[1] == r2[1] && r2[1] == r3[1]) ) { return false; } } return true; } #ifndef IGL_HEADER_ONLY // Explicit template specialization // generated by autoexplicit.sh template bool igl::is_manifold, Eigen::Matrix >(Eigen::PlainObjectBase > const&, Eigen::PlainObjectBase > const&); // generated by autoexplicit.sh //template bool igl::is_manifold(Eigen::Matrix const&, Eigen::Matrix const&); template bool igl::is_manifold, Eigen::Matrix >(Eigen::PlainObjectBase > const&, Eigen::PlainObjectBase > const&); #endif