to_cork_mesh.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2015 Alec Jacobson <alecjacobson@gmail.com>
  4. //
  5. // This Source Code Form is subject to the terms of the Mozilla Public License
  6. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. // obtain one at http://mozilla.org/MPL/2.0/.
  8. #ifndef IGL_BOOLEAN_TO_CORK_MESH_H
  9. #define IGL_BOOLEAN_TO_CORK_MESH_H
  10. #ifndef IGL_NO_CORK
  11. #include <igl/igl_inline.h>
  12. #include <cork.h>
  13. #include <Eigen/Core>
  14. namespace igl
  15. {
  16. namespace boolean
  17. {
  18. // Convert a (V,F) mesh to a cork's triangle mesh representation.
  19. //
  20. // Inputs:
  21. // V #V by 3 list of vertex positions
  22. // F #F by 3 list of triangle indices into V
  23. // Outputs:
  24. // mesh cork representation of mesh
  25. template <
  26. typename DerivedV,
  27. typename DerivedF>
  28. IGL_INLINE void to_cork_mesh(
  29. const Eigen::PlainObjectBase<DerivedV > & V,
  30. const Eigen::PlainObjectBase<DerivedF > & F,
  31. CorkTriMesh & mesh);
  32. }
  33. }
  34. #ifndef IGL_STATIC_LIBRARY
  35. # include "to_cork_mesh.cpp"
  36. #endif
  37. #endif
  38. #endif