decimate_trivial_callbacks.h 1.0 KB

123456789101112131415161718192021222324252627282930
  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. #ifndef IGL_DECIMATE_TRIVIAL_CALLBACKS_H
  9. #define IGL_DECIMATE_TRIVIAL_CALLBACKS_H
  10. #include "igl_inline.h"
  11. #include "decimate_callback_types.h"
  12. namespace igl
  13. {
  14. /// Function to build trivial pre and post collapse actions.
  15. ///
  16. /// @param[out] always_try function that always returns true (always attempt the next
  17. /// edge collapse)
  18. /// @param[out] never_care fuction that is always a no-op (never have a post collapse
  19. /// response)
  20. IGL_INLINE void decimate_trivial_callbacks(
  21. decimate_pre_collapse_callback & always_try,
  22. decimate_post_collapse_callback & never_care);
  23. };
  24. #ifndef IGL_STATIC_LIBRARY
  25. # include "decimate_trivial_callbacks.cpp"
  26. #endif
  27. #endif