is_manifold.h 641 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // IGL Lib - Simple C++ mesh library
  3. //
  4. // Copyright 2011, Daniele Panozzo. All rights reserved.
  5. #ifndef IGL_IS_MANIFOLD_H
  6. #define IGL_IS_MANIFOLD_H
  7. #include "igl_inline.h"
  8. #include <Eigen/Core>
  9. #include <vector>
  10. namespace igl
  11. {
  12. // check if the mesh is edge-manifold
  13. //
  14. // Not clear whether this returns true or false if the mesh is disc topology
  15. //
  16. // Known Bugs:
  17. // Does not check for non-manifold vertices
  18. template<typename T>
  19. IGL_INLINE bool is_manifold(const Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>& V, const Eigen::MatrixXi& F);
  20. }
  21. #ifdef IGL_HEADER_ONLY
  22. # include "is_manifold.cpp"
  23. #endif
  24. #endif