// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2020 Alec Jacobson // // This Source Code Form is subject to the terms of the Mozilla Public License // v. 2.0. If a copy of the MPL was not distributed with this file, You can // obtain one at http://mozilla.org/MPL/2.0/. #ifndef DECIMATE_FUNC_TYPES_H #define DECIMATE_FUNC_TYPES_H #include #include "min_heap.h" // Function handles used to customize the `igl::decimate` command. using decimate_cost_and_placement_func = std::function; using decimate_stopping_condition_func = std::function > & ,/*Q*/ const Eigen::VectorXi & ,/*EQ*/ const Eigen::MatrixXd & ,/*C*/ const int ,/*e*/ const int ,/*e1*/ const int ,/*e2*/ const int ,/*f1*/ const int /*f2*/ )>; using decimate_pre_collapse_func = std::function > & ,/*Q*/ const Eigen::VectorXi & ,/*EQ*/ const Eigen::MatrixXd & ,/*C*/ const int /*e*/ )>; using decimate_post_collapse_func = std::function > & ,/*Q*/ const Eigen::VectorXi & ,/*EQ*/ const Eigen::MatrixXd & ,/*C*/ const int ,/*e*/ const int ,/*e1*/ const int ,/*e2*/ const int ,/*f1*/ const int ,/*f2*/ const bool /*collapsed*/ )>; #endif