to_cork_mesh.h 758 B

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