libigl v2.5.0
Loading...
Searching...
No Matches
qslim_optimal_collapse_edge_callbacks.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2016 Alec Jacobson <alecjacobson@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#ifndef IGL_QSLIM_OPTIMAL_COLLAPSE_EDGE_CALLBACKS_H
9#define IGL_QSLIM_OPTIMAL_COLLAPSE_EDGE_CALLBACKS_H
10#include "igl_inline.h"
12#include <Eigen/Core>
13#include <functional>
14#include <vector>
15#include <tuple>
16#include <set>
17namespace igl
18{
36 IGL_INLINE void qslim_optimal_collapse_edge_callbacks(
37 Eigen::MatrixXi & E,
38 std::vector<
39 std::tuple<
40 Eigen::MatrixXd,
41 Eigen::RowVectorXd,
42 double> > &
43 quadrics,
44 int & v1,
45 int & v2,
46 decimate_cost_and_placement_callback & cost_and_placement,
47 decimate_pre_collapse_callback & pre_collapse,
48 decimate_post_collapse_callback & post_collapse);
49}
50#ifndef IGL_STATIC_LIBRARY
51# include "qslim_optimal_collapse_edge_callbacks.cpp"
52#endif
53#endif
See decimate.h for more details.
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:18
std::function< bool( const Eigen::MatrixXd &, const Eigen::MatrixXi &, const Eigen::MatrixXi &, const Eigen::VectorXi &, const Eigen::MatrixXi &, const Eigen::MatrixXi &, const igl::min_heap< std::tuple< double, int, int > > &, const Eigen::VectorXi &, const Eigen::MatrixXd &, const int)> decimate_pre_collapse_callback
Function handle called just before collapse_edge is attempted.
Definition decimate_callback_types.h:110
std::function< void( const int, const Eigen::MatrixXd &, const Eigen::MatrixXi &, const Eigen::MatrixXi &, const Eigen::VectorXi &, const Eigen::MatrixXi &, const Eigen::MatrixXi &, double &, Eigen::RowVectorXd &)> decimate_cost_and_placement_callback
Function handle used to control the cost of each edge collapse in igl::decimate.
Definition decimate_callback_types.h:35
std::function< void( const Eigen::MatrixXd &, const Eigen::MatrixXi &, const Eigen::MatrixXi &, const Eigen::VectorXi &, const Eigen::MatrixXi &, const Eigen::MatrixXi &, const igl::min_heap< std::tuple< double, int, int > > &, const Eigen::VectorXi &, const Eigen::MatrixXd &, const int, const int, const int, const int, const int, const bool)> decimate_post_collapse_callback
Function handle called just after collapse_edge is attempted.
Definition decimate_callback_types.h:147