decimate_trivial_callbacks.cpp 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2020 Alec Jacobson <[email protected]>
  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. #include "decimate_trivial_callbacks.h"
  9. IGL_INLINE void igl::decimate_trivial_callbacks(
  10. decimate_pre_collapse_callback & always_try,
  11. decimate_post_collapse_callback & never_care)
  12. {
  13. always_try = [](
  14. const Eigen::MatrixXd & ,/*V*/
  15. const Eigen::MatrixXi & ,/*F*/
  16. const Eigen::MatrixXi & ,/*E*/
  17. const Eigen::VectorXi & ,/*EMAP*/
  18. const Eigen::MatrixXi & ,/*EF*/
  19. const Eigen::MatrixXi & ,/*EI*/
  20. const igl::min_heap< std::tuple<double,int,int> > & ,/*Q*/
  21. const Eigen::VectorXi & ,/*EQ*/
  22. const Eigen::MatrixXd & ,/*C*/
  23. const int /*e*/
  24. ) -> bool { return true;};
  25. never_care = [](
  26. const Eigen::MatrixXd & ,/*V*/
  27. const Eigen::MatrixXi & ,/*F*/
  28. const Eigen::MatrixXi & ,/*E*/
  29. const Eigen::VectorXi & ,/*EMAP*/
  30. const Eigen::MatrixXi & ,/*EF*/
  31. const Eigen::MatrixXi & ,/*EI*/
  32. const igl::min_heap< std::tuple<double,int,int> > & ,/*Q*/
  33. const Eigen::VectorXi & ,/*EQ*/
  34. const Eigen::MatrixXd & ,/*C*/
  35. const int ,/*e*/
  36. const int ,/*e1*/
  37. const int ,/*e2*/
  38. const int ,/*f1*/
  39. const int ,/*f2*/
  40. const bool /*collapsed*/
  41. )-> void { };
  42. }