to_cork_mesh.h 686 B

12345678910111213141516171819202122232425262728
  1. #ifndef IGL_TO_CORK_MESH_H
  2. #define IGL_TO_CORK_MESH_H
  3. #ifndef IGL_NO_CORK
  4. #include <igl/igl_inline.h>
  5. #include <cork.h>
  6. #include <Eigen/Core>
  7. namespace igl
  8. {
  9. // Convert a (V,F) mesh to a cork's triangle mesh representation.
  10. //
  11. // Inputs:
  12. // V #V by 3 list of vertex positions
  13. // F #F by 3 list of triangle indices into V
  14. // Outputs:
  15. // mesh cork representation of mesh
  16. template <
  17. typename DerivedV,
  18. typename DerivedF>
  19. IGL_INLINE void to_cork_mesh(
  20. const Eigen::PlainObjectBase<DerivedV > & V,
  21. const Eigen::PlainObjectBase<DerivedF > & F,
  22. CorkTriMesh & mesh);
  23. }
  24. #ifndef IGL_STATIC_LIBRARY
  25. # include "to_cork_mesh.cpp"
  26. #endif
  27. #endif
  28. #endif