vf.h 780 B

12345678910111213141516171819202122232425262728293031
  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 DerivedV, typename DerivedF, typename IndexType>
  17. IGL_INLINE void vf(
  18. const Eigen::PlainObjectBase<DerivedV>& V,
  19. const Eigen::PlainObjectBase<DerivedF>& F,
  20. std::vector<std::vector<IndexType> >& VF,
  21. std::vector<std::vector<IndexType> >& VFi);
  22. }
  23. #ifdef IGL_HEADER_ONLY
  24. # include "vf.cpp"
  25. #endif
  26. #endif