is_manifold.h 595 B

12345678910111213141516171819202122232425
  1. #ifndef IGL_IS_MANIFOLD_H
  2. #define IGL_IS_MANIFOLD_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Core>
  5. #include <vector>
  6. namespace igl
  7. {
  8. // check if the mesh is edge-manifold
  9. //
  10. // Not clear whether this returns true or false if the mesh is disc topology
  11. //
  12. // Known Bugs:
  13. // Does not check for non-manifold vertices
  14. template <typename DerivedV, typename DerivedF>
  15. IGL_INLINE bool is_manifold(const Eigen::PlainObjectBase<DerivedV>& V,
  16. const Eigen::PlainObjectBase<DerivedF>& F);
  17. }
  18. #ifdef IGL_HEADER_ONLY
  19. # include "is_manifold.cpp"
  20. #endif
  21. #endif