// // IGL Lib - Simple C++ mesh library // // Copyright 2011, Daniele Panozzo. All rights reserved. #ifndef IGL_TT_H #define IGL_TT_H #include "igl_inline.h" #include #include namespace igl { // Preprocessing template IGL_INLINE void tt_preprocess(const Eigen::PlainObjectBase& V, const Eigen::PlainObjectBase& F, std::vector >& TTT); // Extract the face adjacencies template IGL_INLINE void tt_extractTT(const Eigen::PlainObjectBase& F, std::vector >& TTT, Eigen::PlainObjectBase& TT); // Extract the face adjacencies indices (needed for fast traversal) template IGL_INLINE void tt_extractTTi(const Eigen::PlainObjectBase& F, std::vector >& TTT, Eigen::PlainObjectBase& TTi); // Compute triangle-triangle adjacency template IGL_INLINE void tt(const Eigen::PlainObjectBase& V, const Eigen::PlainObjectBase& F, Eigen::PlainObjectBase& TT); // Compute triangle-triangle adjacency with indices template IGL_INLINE void tt(const Eigen::PlainObjectBase& V, const Eigen::PlainObjectBase& F, Eigen::PlainObjectBase& TT, Eigen::PlainObjectBase& TTi); } #ifdef IGL_HEADER_ONLY # include "tt.cpp" #endif #endif