libigl v2.5.0
Loading...
Searching...
No Matches
flip_avoiding_line_search.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 Michael Rabinovich
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_FLIP_AVOIDING_LINE_SEARCH_H
9#define IGL_FLIP_AVOIDING_LINE_SEARCH_H
10#include "igl_inline.h"
11#include "PI.h"
12
13#include <Eigen/Dense>
14
15namespace igl
16{
35 const Eigen::MatrixXi & F,
36 Eigen::MatrixXd& cur_v,
37 const Eigen::MatrixXd& dst_v,
38 std::function<double(Eigen::MatrixXd&)> & energy,
39 double cur_energy = -1);
40
41}
42
43#ifndef IGL_STATIC_LIBRARY
44# include "flip_avoiding_line_search.cpp"
45#endif
46
47#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
double flip_avoiding_line_search(const Eigen::MatrixXi &F, Eigen::MatrixXd &cur_v, const Eigen::MatrixXd &dst_v, std::function< double(Eigen::MatrixXd &)> &energy, double cur_energy=-1)
A bisection line search for a mesh based energy that avoids triangle flips as suggested in "Bijective...