From 7fa869dc0dc9921df2a6221f43fe56497238c083 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Tue, 16 Oct 2007 12:19:25 +0000 Subject: [PATCH] mismatch between float and absperc parameters --- src/meshlabplugins/meshfilter/meshfilter.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/meshlabplugins/meshfilter/meshfilter.cpp b/src/meshlabplugins/meshfilter/meshfilter.cpp index 01a8dd12d..96acad1a0 100644 --- a/src/meshlabplugins/meshfilter/meshfilter.cpp +++ b/src/meshlabplugins/meshfilter/meshfilter.cpp @@ -22,6 +22,9 @@ /**************************************************************************** History $Log$ +Revision 1.100 2007/10/16 12:19:25 cignoni +mismatch between float and absperc parameters + Revision 1.99 2007/10/06 23:39:01 cignoni Updated used defined dialog to the new filter interface. @@ -362,7 +365,7 @@ bool ExtraMeshFilterPlugin::applyFilter(QAction *filter, MeshModel &m, FilterPar } bool selected = par.getBool("Selected"); - float threshold = par.getFloat("Threshold"); + float threshold = par.getAbsPerc("Threshold"); switch(ID(filter)) { case FP_LOOP_SS : @@ -381,7 +384,7 @@ bool ExtraMeshFilterPlugin::applyFilter(QAction *filter, MeshModel &m, FilterPar } if (ID(filter) == FP_REMOVE_FACES_BY_EDGE ) { bool selected = par.getBool("Selected"); - float threshold = par.getFloat("Threshold"); + float threshold = par.getAbsPerc("Threshold"); if(selected) tri::Clean::RemoveFaceOutOfRangeEdgeSel(m.cm,0,threshold ); else tri::Clean::RemoveFaceOutOfRangeEdgeSel(m.cm,0,threshold ); m.clearDataMask(MeshModel::MM_FACETOPO | MeshModel::MM_BORDERFLAG); @@ -457,7 +460,7 @@ bool ExtraMeshFilterPlugin::applyFilter(QAction *filter, MeshModel &m, FilterPar if(ID(filter) == (FP_CLUSTERING)) { bool selected = par.getBool("Selected"); - float threshold = par.getFloat("Threshold"); + float threshold = par.getAbsPerc("Threshold"); vcg::tri::Clustering > Grid; Grid.Init(m.cm.bbox,100000,threshold); Grid.Add(m.cm);