exterior_edges.h 692 B

1234567891011121314151617181920212223242526
  1. #ifndef IGL_EXTERIOR_EDGES_H
  2. #define IGL_EXTERIOR_EDGES_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Dense>
  5. namespace igl
  6. {
  7. // EXTERIOR_EDGES Determines boundary "edges" and also edges with an
  8. // odd number of occurances where seeing edge (i,j) counts as +1 and seeing
  9. // the opposite edge (j,i) counts as -1
  10. //
  11. // Inputs:
  12. // F #F by simplex_size list of "faces"
  13. // Outputs:
  14. // E #E by simplex_size-1 list of exterior edges
  15. //
  16. IGL_INLINE void exterior_edges(
  17. const Eigen::MatrixXi & F,
  18. Eigen::MatrixXi & E);
  19. // Inline version
  20. Eigen::MatrixXi exterior_edges( const Eigen::MatrixXi & F);
  21. }
  22. #ifdef IGL_HEADER_ONLY
  23. # include "exterior_edges.h"
  24. #endif
  25. #endif