is_vertex_manifold.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2014 Alec Jacobson <[email protected]>
  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. /// @param[in] F #F by 3 list of triangle indices
  21. /// @param[out] B #V list indicate whether each vertex is locally manifold.
  22. /// @return whether mesh is vertex manifold.
  23. ///
  24. /// \see is_edge_manifold
  25. template <typename DerivedF,typename DerivedB>
  26. IGL_INLINE bool is_vertex_manifold(
  27. const Eigen::MatrixBase<DerivedF>& F,
  28. Eigen::PlainObjectBase<DerivedB>& B);
  29. /// \overload
  30. template <typename DerivedF>
  31. IGL_INLINE bool is_vertex_manifold(
  32. const Eigen::MatrixBase<DerivedF>& F);
  33. }
  34. #ifndef IGL_STATIC_LIBRARY
  35. # include "is_vertex_manifold.cpp"
  36. #endif
  37. #endif