is_manifold.h 699 B

123456789101112131415161718192021222324252627282930
  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 DerivedV, typename DerivedF>
  19. IGL_INLINE bool is_manifold(const Eigen::PlainObjectBase<DerivedV>& V,
  20. const Eigen::PlainObjectBase<DerivedF>& F);
  21. }
  22. #ifdef IGL_HEADER_ONLY
  23. # include "is_manifold.cpp"
  24. #endif
  25. #endif