is_border_vertex.h 826 B

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