all_edges.h 733 B

123456789101112131415161718192021222324252627
  1. #ifndef IGL_ALL_EDGES_H
  2. #define IGL_ALL_EDGES_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Dense>
  5. namespace igl
  6. {
  7. // ALL_EDGES Determines all "directed edges" of a given set of simplices
  8. //
  9. // Inputs:
  10. // F #F by simplex_size list of "faces"
  11. // Outputs:
  12. // E #E by simplex_size-1 list of edges
  13. //
  14. // Note: this is not the same as igl::edges because this includes every
  15. // directed edge including repeats (meaning interior edges on a surface will
  16. // show up once for each direction and non-manifold edges may appear more than
  17. // once for each direction).
  18. IGL_INLINE void all_edges(
  19. const Eigen::MatrixXi & F,
  20. Eigen::MatrixXi & E);
  21. }
  22. #ifdef IGL_HEADER_ONLY
  23. # include "all_edges.cpp"
  24. #endif
  25. #endif