Try to solve even very overconstrained systems.

Before this commit, overconstraining a system past a certain point
resulted in a wrong error message: instead of "redundant constraints",
"unsolvable constraints" was displayed.

To reproduce, place more six or more length constraints with the same
value onto the same line segment.
This commit is contained in:
EvilSpirit 2016-01-21 11:22:37 +06:00 committed by whitequark
parent 804761da88
commit 2b388e7da4

View File

@ -277,7 +277,6 @@ bool System::SolveLeastSquares(void) {
} }
bool System::NewtonSolve(int tag) { bool System::NewtonSolve(int tag) {
if(mat.m > mat.n) return false;
int iter = 0; int iter = 0;
bool converged = false; bool converged = false;