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 1e56860f88
commit 27767f7a48

View File

@ -278,7 +278,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;