https://github.com/HTDerekLiu/surface_multigrid_code
Tip revision: a827578755d864df68b103c71048c7da7a00ce59 authored by HTDerekLiu on 09 August 2021, 18:36:04 UTC
add a faster example
add a faster example
Tip revision: a827578
decimate_func_types.h
// This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2020 Alec Jacobson <alecjacobson@gmail.com>
//
// 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 <Eigen/Core>
#include "min_heap.h"
// Function handles used to customize the `igl::decimate` command.
using decimate_cost_and_placement_func =
std::function<void(
const int ,/*e*/
const Eigen::MatrixXd & ,/*V*/
const Eigen::MatrixXi & ,/*F*/
const Eigen::MatrixXi & ,/*E*/
const Eigen::VectorXi & ,/*EMAP*/
const Eigen::MatrixXi & ,/*EF*/
const Eigen::MatrixXi & ,/*EI*/
double & ,/*cost*/
Eigen::RowVectorXd & /*p*/
)>;
using decimate_stopping_condition_func =
std::function<bool(
const Eigen::MatrixXd & ,/*V*/
const Eigen::MatrixXi & ,/*F*/
const Eigen::MatrixXi & ,/*E*/
const Eigen::VectorXi & ,/*EMAP*/
const Eigen::MatrixXi & ,/*EF*/
const Eigen::MatrixXi & ,/*EI*/
const min_heap< std::tuple<double,int,int> > & ,/*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<bool(
const Eigen::MatrixXd & ,/*V*/
const Eigen::MatrixXi & ,/*F*/
const Eigen::MatrixXi & ,/*E*/
const Eigen::VectorXi & ,/*EMAP*/
const Eigen::MatrixXi & ,/*EF*/
const Eigen::MatrixXi & ,/*EI*/
const min_heap< std::tuple<double,int,int> > & ,/*Q*/
const Eigen::VectorXi & ,/*EQ*/
const Eigen::MatrixXd & ,/*C*/
const int /*e*/
)>;
using decimate_post_collapse_func =
std::function<void(
const Eigen::MatrixXd & ,/*V*/
const Eigen::MatrixXi & ,/*F*/
const Eigen::MatrixXi & ,/*E*/
const Eigen::VectorXi & ,/*EMAP*/
const Eigen::MatrixXi & ,/*EF*/
const Eigen::MatrixXi & ,/*EI*/
const min_heap< std::tuple<double,int,int> > & ,/*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