is_vertex_manifold.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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_VERTEX_MANIFOLD_H
  9. #define IGL_IS_VERTEX_MANIFOLD_H
  10. #include "igl_inline.h"
  11. #include <Eigen/Core>
  12. namespace igl
  13. {
  14. // Check if a mesh is vertex-manifold. This only checks whether the faces
  15. // incident on each vertex form exactly one connected component. Vertices
  16. // incident on non-manifold edges are not consider non-manifold by this
  17. // function (see is_edge_manifold.h). Unreferenced verties are considered
  18. // non-manifold (zero components).
  19. //
  20. // Inputs:
  21. // F #F by 3 list of triangle indices
  22. // Outputs:
  23. // B #V list indicate whether each vertex is locally manifold.
  24. // Returns whether mesh is vertex manifold.
  25. //
  26. // See also: is_edge_manifold
  27. template <typename DerivedF,typename DerivedB>
  28. IGL_INLINE bool is_vertex_manifold(
  29. const Eigen::PlainObjectBase<DerivedF>& F,
  30. Eigen::PlainObjectBase<DerivedB>& B);
  31. }
  32. #ifndef IGL_STATIC_LIBRARY
  33. # include "is_vertex_manifold.cpp"
  34. #endif
  35. #endif