mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-04 01:48:44 +03:00
update bundled_deps
This commit is contained in:
137
bundled_deps/libigl/igl/lim/lim.cpp
Normal file
137
bundled_deps/libigl/igl/lim/lim.cpp
Normal file
@@ -0,0 +1,137 @@
|
||||
// This file is part of libigl, a simple c++ geometry processing library.
|
||||
//
|
||||
// Copyright (C) 2014 Christian Schüller <schuellchr@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/.
|
||||
#include "lim.h"
|
||||
#include <LIMSolverInterface.h>
|
||||
|
||||
|
||||
IGL_INLINE igl::lim::State igl::lim::lim(
|
||||
Eigen::Matrix<double,Eigen::Dynamic,3>& vertices,
|
||||
const Eigen::Matrix<double,Eigen::Dynamic,3>& initialVertices,
|
||||
const Eigen::Matrix<int,Eigen::Dynamic,Eigen::Dynamic>& elements,
|
||||
const Eigen::SparseMatrix<double>& constraintMatrix,
|
||||
const Eigen::Matrix<double,Eigen::Dynamic,1>& constraintTargets,
|
||||
Energy energyType,
|
||||
double tolerance,
|
||||
int maxIteration,
|
||||
bool findLocalMinima)
|
||||
{
|
||||
return (State)ComputeLIM(
|
||||
vertices,
|
||||
initialVertices,
|
||||
elements,
|
||||
constraintMatrix,
|
||||
constraintTargets,
|
||||
(EnergyType)energyType,
|
||||
tolerance,
|
||||
maxIteration,
|
||||
findLocalMinima
|
||||
);
|
||||
}
|
||||
|
||||
IGL_INLINE igl::lim::State igl::lim::lim(
|
||||
Eigen::Matrix<double,Eigen::Dynamic,3>& vertices,
|
||||
const Eigen::Matrix<double,Eigen::Dynamic,3>& initialVertices,
|
||||
const Eigen::Matrix<int,Eigen::Dynamic,Eigen::Dynamic>& elements,
|
||||
const Eigen::SparseMatrix<double>& constraintMatrix,
|
||||
const Eigen::Matrix<double,Eigen::Dynamic,1>& constraintTargets,
|
||||
Energy energyType,
|
||||
double tolerance,
|
||||
int maxIteration,
|
||||
bool findLocalMinima,
|
||||
bool enableOuput,
|
||||
bool enableBarriers,
|
||||
bool enableAlphaUpdate,
|
||||
double beta,
|
||||
double eps)
|
||||
{
|
||||
return (State)ComputeLIM(
|
||||
vertices,
|
||||
initialVertices,
|
||||
elements,
|
||||
constraintMatrix,
|
||||
constraintTargets,
|
||||
(EnergyType)energyType,
|
||||
tolerance,
|
||||
maxIteration,
|
||||
findLocalMinima,
|
||||
enableOuput,
|
||||
enableBarriers,
|
||||
enableAlphaUpdate,
|
||||
beta,
|
||||
eps
|
||||
);
|
||||
}
|
||||
|
||||
IGL_INLINE igl::lim::State igl::lim::lim(
|
||||
Eigen::Matrix<double,Eigen::Dynamic,3>& vertices,
|
||||
const Eigen::Matrix<double,Eigen::Dynamic,3>& initialVertices,
|
||||
const Eigen::Matrix<int,Eigen::Dynamic,Eigen::Dynamic>& elements,
|
||||
const std::vector<int>& borderVertices,
|
||||
const Eigen::Matrix<double,Eigen::Dynamic,1>& gradients,
|
||||
const Eigen::SparseMatrix<double>& constraintMatrix,
|
||||
const Eigen::Matrix<double,Eigen::Dynamic,1>& constraintTargets,
|
||||
Energy energyType,
|
||||
double tolerance,
|
||||
int maxIteration,
|
||||
bool findLocalMinima)
|
||||
{
|
||||
return (State)ComputeLIM(
|
||||
vertices,
|
||||
initialVertices,
|
||||
elements,
|
||||
borderVertices,
|
||||
gradients,
|
||||
constraintMatrix,
|
||||
constraintTargets,
|
||||
(EnergyType)energyType,
|
||||
tolerance,
|
||||
maxIteration,
|
||||
findLocalMinima
|
||||
);
|
||||
}
|
||||
|
||||
IGL_INLINE igl::lim::State igl::lim::lim(
|
||||
Eigen::Matrix<double,Eigen::Dynamic,3>& vertices,
|
||||
const Eigen::Matrix<double,Eigen::Dynamic,3>& initialVertices,
|
||||
const Eigen::Matrix<int,Eigen::Dynamic,Eigen::Dynamic>& elements,
|
||||
const std::vector<int>& borderVertices,
|
||||
const Eigen::Matrix<double,Eigen::Dynamic,1>& gradients,
|
||||
const Eigen::SparseMatrix<double>& constraintMatrix,
|
||||
const Eigen::Matrix<double,Eigen::Dynamic,1>& constraintTargets,
|
||||
Energy energyType,
|
||||
double tolerance,
|
||||
int maxIteration,
|
||||
bool findLocalMinima,
|
||||
bool enableOuput,
|
||||
bool enableBarriers,
|
||||
bool enableAlphaUpdate,
|
||||
double beta,
|
||||
double eps)
|
||||
{
|
||||
return (State)ComputeLIM(
|
||||
vertices,
|
||||
initialVertices,
|
||||
elements,
|
||||
borderVertices,
|
||||
gradients,
|
||||
constraintMatrix,
|
||||
constraintTargets,
|
||||
(EnergyType)energyType,
|
||||
tolerance,
|
||||
maxIteration,
|
||||
findLocalMinima,
|
||||
enableOuput,
|
||||
enableBarriers,
|
||||
enableAlphaUpdate,
|
||||
beta,
|
||||
eps);
|
||||
}
|
||||
|
||||
#ifdef IGL_STATIC_LIBRARY
|
||||
// Explicit template instantiation
|
||||
#endif
|
||||
Reference in New Issue
Block a user