From 7c907e72ae84958ad4065f713ec44494b79f07e7 Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 1 Dec 2009 08:37:27 +0000 Subject: [PATCH] Corrected a survived old style use of temporary data in smoothning of vertex normals --- vcg/complex/trimesh/smooth.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/vcg/complex/trimesh/smooth.h b/vcg/complex/trimesh/smooth.h index b32e29f1..e8a99ad9 100644 --- a/vcg/complex/trimesh/smooth.h +++ b/vcg/complex/trimesh/smooth.h @@ -754,12 +754,11 @@ static void VertexQualityLaplacian(MeshType &m, int step=1, bool SmoothSelected= static void VertexNormalLaplacian(MeshType &m, int step,bool SmoothSelected=false) { - SimpleTempData TD(m.vert); - LaplacianInfo lpz; - lpz.sum=CoordType(0,0,0); - lpz.cnt=0; - TD.Start(lpz); - for(int i=0;i TD(m.vert,lpz); + for(int i=0;i