edgetopology.h 731 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // IGL Lib - Simple C++ mesh library
  3. //
  4. // Copyright 2011, Daniele Panozzo. All rights reserved.
  5. #ifndef IGL_EDGETOPOLOGY_H
  6. #define IGL_EDGETOPOLOGY_H
  7. #include "igl_inline.h"
  8. #include <Eigen/Core>
  9. #include <vector>
  10. namespace igl
  11. {
  12. // Initialize Edges and their topological relations
  13. // Output:
  14. // EV : #Ex2, Stores the edge description as pair of indices to vertices
  15. // FE : #Fx3, Stores the Triangle-Edge relation
  16. // EF : #Ex2: Stores the Edge-Triangle relation
  17. IGL_INLINE void edgetopology(
  18. const Eigen::MatrixXd& V,
  19. const Eigen::MatrixXi& F,
  20. Eigen::MatrixXi& EV,
  21. Eigen::MatrixXi& FE,
  22. Eigen::MatrixXi& EF);
  23. }
  24. #ifdef IGL_HEADER_ONLY
  25. # include "edgetopology.cpp"
  26. #endif
  27. #endif