diff options
author | Alexander Pinzon <apinzonf@gmail.com> | 2013-01-17 23:19:02 +0400 |
---|---|---|
committer | Alexander Pinzon <apinzonf@gmail.com> | 2013-01-17 23:19:02 +0400 |
commit | 9e8c50921338fd187be5e707aa3bf4398c0100b7 (patch) | |
tree | bcb3e28e671c617f20aa3e6cd51e427ca75499b0 /source/blender/modifiers | |
parent | 8a0ad8f8b5b76f5fe69c628c9e564e0231cc0576 (diff) |
The problem of the peaks is corrected with the use of the normalized version.
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_laplaciansmooth.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/source/blender/modifiers/intern/MOD_laplaciansmooth.c b/source/blender/modifiers/intern/MOD_laplaciansmooth.c index 4c876102996..2739365e619 100644 --- a/source/blender/modifiers/intern/MOD_laplaciansmooth.c +++ b/source/blender/modifiers/intern/MOD_laplaciansmooth.c @@ -529,24 +529,6 @@ static void validate_solution(LaplacianSystem * sys, short flag, float lambda, f if (flag & MOD_LAPLACIANSMOOTH_PRESERVE_VOLUME) { vini = compute_volume(sys->vertexCos, sys->mfaces, sys->numFaces); } - for (i = 0; i < sys->numEdges; i++) { - idv1 = sys->medges[i].v1; - idv2 = sys->medges[i].v2; - vi1 = sys->vertexCos[idv1]; - vi2 = sys->vertexCos[idv2]; - ve1[0] = nlGetVariable(0, idv1); - ve1[1] = nlGetVariable(1, idv1); - ve1[2] = nlGetVariable(2, idv1); - ve2[0] = nlGetVariable(0, idv2); - ve2[1] = nlGetVariable(1, idv2); - ve2[2] = nlGetVariable(2, idv2); - leni = len_v3v3(vi1, vi2); - lene = len_v3v3(ve1, ve2); - if (lene > leni * MOD_LAPLACIANSMOOTH_MAX_EDGE_PERCENTAGE || lene < leni * MOD_LAPLACIANSMOOTH_MIN_EDGE_PERCENTAGE) { - sys->zerola[idv1] = 1; - sys->zerola[idv2] = 1; - } - } for (i = 0; i < sys->numVerts; i++) { if (sys->zerola[i] == 0) { lam = sys->numNeEd[i] == sys->numNeFa[i] ? (lambda >= 0.0f ? 1.0f : -1.0f) : (lambda_border >= 0.0f ? 1.0f : -1.0f); |