from_cork_mesh.h 686 B

12345678910111213141516171819202122232425262728
  1. #ifndef IGL_FROM_CORK_MESH_H
  2. #define IGL_FROM_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 cork's triangle mesh representation to a (V,F) mesh.
  10. //
  11. // Inputs:
  12. // mesh cork representation of mesh
  13. // Outputs:
  14. // V #V by 3 list of vertex positions
  15. // F #F by 3 list of triangle indices into V
  16. template <
  17. typename DerivedV,
  18. typename DerivedF>
  19. IGL_INLINE void from_cork_mesh(
  20. const CorkTriMesh & mesh,
  21. Eigen::PlainObjectBase<DerivedV > & V,
  22. Eigen::PlainObjectBase<DerivedF > & F);
  23. }
  24. #ifndef IGL_STATIC_LIBRARY
  25. # include "from_cork_mesh.cpp"
  26. #endif
  27. #endif
  28. #endif