[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53884] trunk/blender/source/blender/ modifiers/intern/MOD_laplaciansmooth.c: The problem of the peaks is corrected with the use of the normalized version .
Alexander Pinzon
apinzonf at gmail.com
Thu Jan 17 20:19:02 CET 2013
Revision: 53884
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53884
Author: apinzonf
Date: 2013-01-17 19:19:02 +0000 (Thu, 17 Jan 2013)
Log Message:
-----------
The problem of the peaks is corrected with the use of the normalized version.
Modified Paths:
--------------
trunk/blender/source/blender/modifiers/intern/MOD_laplaciansmooth.c
Modified: trunk/blender/source/blender/modifiers/intern/MOD_laplaciansmooth.c
===================================================================
--- trunk/blender/source/blender/modifiers/intern/MOD_laplaciansmooth.c 2013-01-17 19:12:11 UTC (rev 53883)
+++ trunk/blender/source/blender/modifiers/intern/MOD_laplaciansmooth.c 2013-01-17 19:19:02 UTC (rev 53884)
@@ -529,24 +529,6 @@
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);
More information about the Bf-blender-cvs
mailing list