vf.h 662 B

123456789101112131415161718192021222324252627282930
  1. #ifndef IGL_VF_H
  2. #define IGL_VF_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Dense>
  5. #include <vector>
  6. namespace igl
  7. {
  8. // Constructs the vertex-face topology of a given mesh (V,F)
  9. // Inputs:
  10. // V #V by 3 list of vertex coordinates
  11. // F #F by dim list of mesh faces (must be triangles)
  12. // Outputs:
  13. //
  14. //
  15. // See also: edges, cotmatrix, diag, vv
  16. template <typename T, typename S>
  17. IGL_INLINE void vf(
  18. const Eigen::Matrix<S, Eigen::Dynamic, Eigen::Dynamic> & V,
  19. const Eigen::MatrixXi & F,
  20. std::vector<std::vector<T> >& VF, std::vector<std::vector<T> >& VFi);
  21. }
  22. #ifdef IGL_HEADER_ONLY
  23. # include "vf.cpp"
  24. #endif
  25. #endif