extract_cells.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. #include <vector>
  14. namespace igl {
  15. namespace cgal {
  16. template<
  17. typename DerivedV,
  18. typename DerivedF,
  19. typename DerivedP,
  20. typename DeriveduE,
  21. typename uE2EType,
  22. typename DerivedEMAP,
  23. typename DerivedC >
  24. IGL_INLINE size_t extract_cells_single_component(
  25. const Eigen::PlainObjectBase<DerivedV>& V,
  26. const Eigen::PlainObjectBase<DerivedF>& F,
  27. const Eigen::PlainObjectBase<DerivedP>& P,
  28. const Eigen::PlainObjectBase<DeriveduE>& uE,
  29. const std::vector<std::vector<uE2EType> >& uE2E,
  30. const Eigen::PlainObjectBase<DerivedEMAP>& EMAP,
  31. Eigen::PlainObjectBase<DerivedC>& cells);
  32. template<
  33. typename DerivedV,
  34. typename DerivedF,
  35. typename DerivedP,
  36. typename DerivedE,
  37. typename DeriveduE,
  38. typename uE2EType,
  39. typename DerivedEMAP,
  40. typename DerivedC >
  41. IGL_INLINE size_t extract_cells(
  42. const Eigen::PlainObjectBase<DerivedV>& V,
  43. const Eigen::PlainObjectBase<DerivedF>& F,
  44. const Eigen::PlainObjectBase<DerivedP>& P,
  45. const Eigen::PlainObjectBase<DerivedE>& E,
  46. const Eigen::PlainObjectBase<DeriveduE>& uE,
  47. const std::vector<std::vector<uE2EType> >& uE2E,
  48. const Eigen::PlainObjectBase<DerivedEMAP>& EMAP,
  49. Eigen::PlainObjectBase<DerivedC>& cells);
  50. template<
  51. typename DerivedV,
  52. typename DerivedF,
  53. typename DerivedC >
  54. IGL_INLINE size_t extract_cells(
  55. const Eigen::PlainObjectBase<DerivedV>& V,
  56. const Eigen::PlainObjectBase<DerivedF>& F,
  57. Eigen::PlainObjectBase<DerivedC>& cells);
  58. }
  59. }
  60. #ifndef IGL_STATIC_LIBRARY
  61. # include "extract_cells.cpp"
  62. #endif
  63. #endif