is_edge_manifold.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2014 Alec Jacobson <alecjacobson@gmail.com>
  4. //
  5. // This Source Code Form is subject to the terms of the Mozilla Public License
  6. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. // obtain one at http://mozilla.org/MPL/2.0/.
  8. #ifndef IGL_IS_EDGE_MANIFOLD_H
  9. #define IGL_IS_EDGE_MANIFOLD_H
  10. #include "igl_inline.h"
  11. #include <Eigen/Core>
  12. namespace igl
  13. {
  14. // check if the mesh is edge-manifold
  15. //
  16. // Inputs:
  17. // V #V by dim list of mesh vertex positions **unneeded**
  18. // F #F by 3 list of triangle indices
  19. // Returns whether mesh is edge manifold.
  20. //
  21. // Known Bugs:
  22. // Does not check for non-manifold vertices
  23. //
  24. // See also: is_vertex_manifold
  25. template <
  26. typename DerivedF,
  27. typename DerivedBF,
  28. typename DerivedE,
  29. typename DerivedEMAP,
  30. typename DerivedBE>
  31. IGL_INLINE bool is_edge_manifold(
  32. const Eigen::MatrixBase<DerivedF>& F,
  33. Eigen::PlainObjectBase<DerivedBF>& BF,
  34. Eigen::PlainObjectBase<DerivedE>& E,
  35. Eigen::PlainObjectBase<DerivedEMAP>& EMAP,
  36. Eigen::PlainObjectBase<DerivedBE>& BE);
  37. template <typename DerivedF>
  38. IGL_INLINE bool is_edge_manifold(
  39. const Eigen::MatrixBase<DerivedF>& F);
  40. }
  41. #ifndef IGL_STATIC_LIBRARY
  42. # include "is_edge_manifold.cpp"
  43. #endif
  44. #endif