extract_cells.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2015 Qingnan Zhou <qnzhou@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. //
  9. #ifndef IGL_CGAL_EXTRACT_CELLS
  10. #define IGL_CGAL_EXTRACT_CELLS
  11. #include "../igl_inline.h"
  12. #include <Eigen/Core>
  13. namespace igl {
  14. namespace cgal {
  15. template<
  16. typename DerivedV,
  17. typename DerivedF,
  18. typename DerivedP,
  19. typename DeriveduE,
  20. typename uE2EType,
  21. typename DerivedEMAP,
  22. typename DerivedC >
  23. IGL_INLINE size_t extract_cells_single_component(
  24. const Eigen::PlainObjectBase<DerivedV>& V,
  25. const Eigen::PlainObjectBase<DerivedF>& F,
  26. const Eigen::PlainObjectBase<DerivedP>& P,
  27. const Eigen::PlainObjectBase<DeriveduE>& uE,
  28. const std::vector<std::vector<uE2EType> >& uE2E,
  29. const Eigen::PlainObjectBase<DerivedEMAP>& EMAP,
  30. Eigen::PlainObjectBase<DerivedC>& cells);
  31. template<
  32. typename DerivedV,
  33. typename DerivedF,
  34. typename DerivedP,
  35. typename DerivedE,
  36. typename DeriveduE,
  37. typename uE2EType,
  38. typename DerivedEMAP,
  39. typename DerivedC >
  40. IGL_INLINE size_t extract_cells(
  41. const Eigen::PlainObjectBase<DerivedV>& V,
  42. const Eigen::PlainObjectBase<DerivedF>& F,
  43. const Eigen::PlainObjectBase<DerivedP>& P,
  44. const Eigen::PlainObjectBase<DerivedE>& E,
  45. const Eigen::PlainObjectBase<DeriveduE>& uE,
  46. const std::vector<std::vector<uE2EType> >& uE2E,
  47. const Eigen::PlainObjectBase<DerivedEMAP>& EMAP,
  48. Eigen::PlainObjectBase<DerivedC>& cells);
  49. template<
  50. typename DerivedV,
  51. typename DerivedF,
  52. typename DerivedC >
  53. IGL_INLINE size_t extract_cells(
  54. const Eigen::PlainObjectBase<DerivedV>& V,
  55. const Eigen::PlainObjectBase<DerivedF>& F,
  56. Eigen::PlainObjectBase<DerivedC>& cells);
  57. }
  58. }
  59. #ifndef IGL_STATIC_LIBRARY
  60. # include "extract_cells.cpp"
  61. #endif
  62. #endif