diff --git a/src/meshlabplugins/filter_sampling/voronoi_clustering.h b/src/meshlabplugins/filter_sampling/voronoi_clustering.h index 81a3d2f92..63925a683 100644 --- a/src/meshlabplugins/filter_sampling/voronoi_clustering.h +++ b/src/meshlabplugins/filter_sampling/voronoi_clustering.h @@ -148,7 +148,7 @@ static void GetAreaAndFrontier(MeshType &m, PerVertexPointerHandle &sources, if((*vi).IsV()) borderVec.push_back(&*vi); } -static void VoronoiRelaxing(MeshType &m, std::vector &seedVec, int relaxIter, int percentileClamping, vcg::CallBackPos *cb=0) +static void VoronoiRelaxing(MeshType &m, std::vector &seedVec, int relaxIter, int /*percentileClamping*/, vcg::CallBackPos *cb=0) { for(int iter=0;iter &seedVec, int // Smaller area region are discarded Distribution H; - for(int i=0;i &seedVec, int } } std::vector newSeeds; - for(int i=0;iC() = Color4b::Gray; @@ -204,15 +204,15 @@ static void VoronoiRelaxing(MeshType &m, std::vector &seedVec, int } tri::UpdateColor::VertexQualityRamp(m); - for(int i=0;iC() = Color4b::Black; - for(int i=0;iC() = Color4b::Gray; swap(newSeeds,seedVec); - for(int i=0;iC() = Color4b::White; tri::Allocator::DeletePerVertexAttribute (m,"sources");