diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2015-11-22 07:25:32 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2015-11-23 00:49:03 +0300 |
commit | 47ce2d7bef32a7f5de34ac3e0cfb8300a4e63cd9 (patch) | |
tree | f6d6546747f58325d80ccca6f17766b298e8461a /source/blender/modifiers/intern/MOD_laplaciandeform.c | |
parent | e6c58df74e1fe8e7921048bc145b6318322541f2 (diff) |
OpenNL: significantly simplify code using Eigen / STL.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_laplaciandeform.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_laplaciandeform.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/modifiers/intern/MOD_laplaciandeform.c b/source/blender/modifiers/intern/MOD_laplaciandeform.c index 8b0ca7f99fb..916f8b8a36d 100644 --- a/source/blender/modifiers/intern/MOD_laplaciandeform.c +++ b/source/blender/modifiers/intern/MOD_laplaciandeform.c @@ -399,7 +399,6 @@ static void laplacianDeformPreview(LaplacianSystem *sys, float (*vertexCos)[3]) sys->context = nlGetCurrent(); nlSolverParameteri(NL_NB_VARIABLES, n); - nlSolverParameteri(NL_SYMMETRIC, NL_FALSE); nlSolverParameteri(NL_LEAST_SQUARES, NL_TRUE); nlSolverParameteri(NL_NB_ROWS, n + na); nlSolverParameteri(NL_NB_RIGHT_HAND_SIDES, 3); @@ -434,7 +433,7 @@ static void laplacianDeformPreview(LaplacianSystem *sys, float (*vertexCos)[3]) } nlEnd(NL_MATRIX); nlEnd(NL_SYSTEM); - if (nlSolveAdvanced(NULL, NL_TRUE)) { + if (nlSolve(NL_TRUE)) { sys->has_solution = true; for (j = 1; j <= sys->repeat; j++) { @@ -451,7 +450,7 @@ static void laplacianDeformPreview(LaplacianSystem *sys, float (*vertexCos)[3]) nlEnd(NL_MATRIX); nlEnd(NL_SYSTEM); - if (!nlSolveAdvanced(NULL, NL_FALSE)) { + if (!nlSolve(NL_FALSE)) { sys->has_solution = false; break; } @@ -495,7 +494,7 @@ static void laplacianDeformPreview(LaplacianSystem *sys, float (*vertexCos)[3]) nlEnd(NL_MATRIX); nlEnd(NL_SYSTEM); - if (nlSolveAdvanced(NULL, NL_FALSE)) { + if (nlSolve(NL_FALSE)) { sys->has_solution = true; for (j = 1; j <= sys->repeat; j++) { nlBegin(NL_SYSTEM); @@ -510,7 +509,7 @@ static void laplacianDeformPreview(LaplacianSystem *sys, float (*vertexCos)[3]) } nlEnd(NL_MATRIX); nlEnd(NL_SYSTEM); - if (!nlSolveAdvanced(NULL, NL_FALSE)) { + if (!nlSolve(NL_FALSE)) { sys->has_solution = false; break; } |