is_border_vertex.h 722 B

123456789101112131415161718192021222324252627282930
  1. #ifndef IGL_IS_BORDER_VERTEX_H
  2. #define IGL_IS_BORDER_VERTEX_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Core>
  5. #include <vector>
  6. namespace igl
  7. {
  8. // Determine vertices on open boundary of a (manifold) mesh with triangle
  9. // faces F
  10. //
  11. // Inputs:
  12. // V #V by dim list of vertex positions
  13. // F #F by 3 list of triangle indices
  14. // Returns vector of indices of vertices on open boundary of F
  15. //
  16. // Known Bugs: does not depend on V
  17. //
  18. template <typename DerivedV, typename DerivedF>
  19. IGL_INLINE std::vector<bool> is_border_vertex(
  20. const Eigen::PlainObjectBase<DerivedV> &V,
  21. const Eigen::PlainObjectBase<DerivedF> &F);
  22. }
  23. #ifdef IGL_HEADER_ONLY
  24. # include "is_border_vertex.cpp"
  25. #endif
  26. #endif