From 1151b88b542b01603edb4b170ab89af6b7279870 Mon Sep 17 00:00:00 2001 From: granzuglia Date: Mon, 22 Oct 2012 12:06:43 +0000 Subject: [PATCH] - updated file according to new vcglib syntax --- vcg/complex/algorithms/voronoi_clustering.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vcg/complex/algorithms/voronoi_clustering.h b/vcg/complex/algorithms/voronoi_clustering.h index 485f8754..1de3c883 100644 --- a/vcg/complex/algorithms/voronoi_clustering.h +++ b/vcg/complex/algorithms/voronoi_clustering.h @@ -127,7 +127,7 @@ static void VoronoiColoring(MeshType &m, std::vector &seedVec, boo g.FarthestVertex(m,borderVec,farthest); } - tri::UpdateColor::VertexQualityRamp(m); + tri::UpdateColor::PerVertexQualityRamp(m); } // It associates the faces with a given vertex according to the vertex associations @@ -301,7 +301,7 @@ static void VoronoiRelaxing(MeshType &m, std::vector &seedVec, int if(cb) cb(iter*100/relaxIter,"Voronoi Lloyd Relaxation: Searching New Seeds"); g.FarthestVertex(m,borderVec,farthest); - tri::UpdateColor::VertexQualityRamp(m); + tri::UpdateColor::PerVertexQualityRamp(m); // Search the local maxima for each region and use them as new seeds std::vector< std::pair > seedMaxima(m.vert.size(),zz); @@ -323,7 +323,7 @@ static void VoronoiRelaxing(MeshType &m, std::vector &seedVec, int newSeeds.push_back(seedMaxima[i].second); } - tri::UpdateColor::VertexQualityRamp(m); + tri::UpdateColor::PerVertexQualityRamp(m); for(size_t i=0;iC() = Color4b::Black;