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 : {