edges.h 642 B

123456789101112131415161718192021222324252627
  1. #ifndef IGL_EDGES_H
  2. #define IGL_EDGES_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Dense>
  5. namespace igl
  6. {
  7. // Constructs a list of unique edges represented in a given mesh (V,F)
  8. // Templates:
  9. // T should be a eigen sparse matrix primitive type like int or double
  10. // Inputs:
  11. // F #F by 3 list of mesh faces (must be triangles)
  12. // or
  13. // T #T x 4 matrix of indices of tet corners
  14. // Outputs:
  15. // E #E by 2 list of edges in no particular order
  16. //
  17. // See also: adjacency_matrix
  18. IGL_INLINE void edges( const Eigen::MatrixXi& F, Eigen::MatrixXi& E);
  19. }
  20. #ifdef IGL_HEADER_ONLY
  21. # include "edges.cpp"
  22. #endif
  23. #endif