from_cork_mesh.h 758 B

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