https://github.com/sueda/eol-cloth
Revision 2323d9f6471bbf5dc63979216a3ed3c97ff3538a authored by Weidner on 13 July 2018, 15:37:58 UTC, committed by Weidner on 13 July 2018, 15:37:58 UTC
1 parent db932cf
Tip revision: 2323d9f6471bbf5dc63979216a3ed3c97ff3538a authored by Weidner on 13 July 2018, 15:37:58 UTC
Solver solving using old deform grad method. Still some bugs, but going to clean up force filling
Solver solving using old deform grad method. Still some bugs, but going to clean up force filling
Tip revision: 2323d9f
GeneralizedSolver.h
#pragma once
#ifndef __GeneralizedSolver__
#define __GeneralizedSolver__
#include <vector>
#include <memory>
#define EIGEN_DONT_ALIGN_STATICALLY
#include <Eigen/Dense>
#include <Eigen/Sparse>
class GeneralizedSolver
{
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
GeneralizedSolver();
virtual ~GeneralizedSolver() {};
enum Solver {
NoSolver = 0, Mosek = 1, Gurobi = 2
};
int whichSolver;
bool velocitySolve(const bool& fixedPoints, const bool& collisions,
const Eigen::SparseMatrix<double>& MDK, const Eigen::VectorXd& b,
const Eigen::SparseMatrix<double>& Aeq, const Eigen::VectorXd& beq,
const Eigen::SparseMatrix<double>& Aineq, const Eigen::VectorXd& bineq,
Eigen::VectorXd& v);
};
#endif
Computing file changes ...