Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'xs/src/igl/line_search.h')
-rw-r--r--xs/src/igl/line_search.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/xs/src/igl/line_search.h b/xs/src/igl/line_search.h
deleted file mode 100644
index 057c6a43f..000000000
--- a/xs/src/igl/line_search.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// This file is part of libigl, a simple c++ geometry processing library.
-//
-// Copyright (C) 2016 Michael Rabinovich
-//
-// 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 IGL_LINE_SEARCH_H
-#define IGL_LINE_SEARCH_H
-#include "igl_inline.h"
-
-#include <Eigen/Dense>
-
-namespace igl
-{
- // Implement a bisection linesearch to minimize a mesh-based energy on vertices given at 'x' at a search direction 'd',
- // with initial step size. Stops when a point with lower energy is found, or after maximal iterations have been reached.
- //
- // Inputs:
- // x #X by dim list of variables
- // d #X by dim list of a given search direction
- // i_step_size initial step size
- // energy A function to compute the mesh-based energy (return an energy that is bigger than 0)
- // cur_energy(OPTIONAL) The energy at the given point. Helps save redundant computations.
- // This is optional. If not specified, the function will compute it.
- // Outputs:
- // x #X by dim list of variables at the new location
- // Returns the energy at the new point 'x'
- IGL_INLINE double line_search(
- Eigen::MatrixXd& x,
- const Eigen::MatrixXd& d,
- double i_step_size,
- std::function<double(Eigen::MatrixXd&)> energy,
- double cur_energy = -1);
-
-}
-
-#ifndef IGL_STATIC_LIBRARY
-# include "line_search.cpp"
-#endif
-
-#endif