From aea2b72dcc7aa49c81fd26467f92c35c7ab19f71 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Tue, 1 Jul 2014 10:27:46 +0000 Subject: [PATCH] Updated to the last changes in the vcg smooth.h --- .../filter_unsharp/filter_unsharp.cpp | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/meshlabplugins/filter_unsharp/filter_unsharp.cpp b/src/meshlabplugins/filter_unsharp/filter_unsharp.cpp index 805ce1aba..fe0f21b30 100644 --- a/src/meshlabplugins/filter_unsharp/filter_unsharp.cpp +++ b/src/meshlabplugins/filter_unsharp/filter_unsharp.cpp @@ -483,24 +483,24 @@ bool FilterUnsharp::applyFilter(QAction *filter, MeshDocument &md, RichParameter break; case FP_TWO_STEP_SMOOTH: { - tri::Clean::RemoveUnreferencedVertex(m.cm); - tri::UpdateSelection::VertexFromFaceStrict(m.cm); - int stepSmoothNum = par.getInt("stepSmoothNum"); - // sigma==0 all is smoothed - // sigma==1 nothing is smoothed - float sigma = cos(math::ToRad(par.getFloat("normalThr"))); - if(sigma<0) sigma=0; + tri::Clean::RemoveUnreferencedVertex(m.cm); + tri::UpdateSelection::VertexFromFaceStrict(m.cm); + int stepSmoothNum = par.getInt("stepSmoothNum"); + // sigma==0 all is smoothed + // sigma==1 nothing is smoothed + float sigma = cos(math::ToRad(par.getFloat("normalThr"))); + if(sigma<0) sigma=0; int stepNormalNum = par.getInt("stepNormalNum"); - int stepFitNum = par.getInt("stepFitNum"); + int stepFitNum = par.getInt("stepFitNum"); bool selectedFlag = par.getBool("Selected"); - for(int i=0;i::PerFaceNormalized(m.cm); - tri::Smooth::VertexCoordPasoDobleFast(m.cm, stepNormalNum, sigma, stepFitNum,selectedFlag); - } - m.UpdateBoxAndNormals(); + for(int i=0;i::PerFaceNormalized(m.cm); + tri::Smooth::VertexCoordPasoDoble(m.cm, stepNormalNum, sigma, stepFitNum,selectedFlag); } + m.UpdateBoxAndNormals(); + } break; case FP_TAUBIN_SMOOTH : {