relabel_small_immersed_cells.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2016 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_RELABEL_SMALL_IMMERSED_CELLS
  10. #define IGL_RELABEL_SMALL_IMMERSED_CELLS
  11. #include "../../igl_inline.h"
  12. #include <Eigen/Core>
  13. #include <vector>
  14. namespace igl
  15. {
  16. namespace copyleft
  17. {
  18. namespace cgal
  19. {
  20. template<
  21. typename DerivedV,
  22. typename DerivedF,
  23. typename DerivedP,
  24. typename DerivedC,
  25. typename FT,
  26. typename DerivedW>
  27. IGL_INLINE void relabel_small_immersed_cells(
  28. const Eigen::PlainObjectBase<DerivedV>& V,
  29. const Eigen::PlainObjectBase<DerivedF>& F,
  30. const size_t num_patches,
  31. const Eigen::PlainObjectBase<DerivedP>& P,
  32. const size_t num_cells,
  33. const Eigen::PlainObjectBase<DerivedC>& C,
  34. const FT vol_threashold,
  35. Eigen::PlainObjectBase<DerivedW>& W);
  36. }
  37. }
  38. }
  39. #ifndef IGL_STATIC_LIBRARY
  40. # include "relabel_small_immersed_cells.cpp"
  41. #endif
  42. #endif