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<std::tuple<Eigen::MatrixXd,Eigen::RowVectorXd,double> > &
39 quadrics,
40 int & v1,
41 int & v2,
42 decimate_cost_and_placement_callback & cost_and_placement,
43 decimate_pre_collapse_callback & pre_collapse,
44 decimate_post_collapse_callback & post_collapse);
45}
46#ifndef IGL_STATIC_LIBRARY
47# include "qslim_optimal_collapse_edge_callbacks.cpp"
48#endif
49#endif
See decimate.h for more details.
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
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:164
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:122
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:46