- updated file according to new vcglib syntax

This commit is contained in:
granzuglia 2012-10-22 12:06:43 +00:00
parent afc883bfc1
commit 1151b88b54
1 changed files with 3 additions and 3 deletions
vcg/complex/algorithms

View File

@ -127,7 +127,7 @@ static void VoronoiColoring(MeshType &m, std::vector<VertexType *> &seedVec, boo
g.FarthestVertex(m,borderVec,farthest); g.FarthestVertex(m,borderVec,farthest);
} }
tri::UpdateColor<MeshType>::VertexQualityRamp(m); tri::UpdateColor<MeshType>::PerVertexQualityRamp(m);
} }
// It associates the faces with a given vertex according to the vertex associations // It associates the faces with a given vertex according to the vertex associations
@ -301,7 +301,7 @@ static void VoronoiRelaxing(MeshType &m, std::vector<VertexType *> &seedVec, int
if(cb) cb(iter*100/relaxIter,"Voronoi Lloyd Relaxation: Searching New Seeds"); if(cb) cb(iter*100/relaxIter,"Voronoi Lloyd Relaxation: Searching New Seeds");
g.FarthestVertex(m,borderVec,farthest); g.FarthestVertex(m,borderVec,farthest);
tri::UpdateColor<MeshType>::VertexQualityRamp(m); tri::UpdateColor<MeshType>::PerVertexQualityRamp(m);
// Search the local maxima for each region and use them as new seeds // Search the local maxima for each region and use them as new seeds
std::vector< std::pair<float,VertexPointer> > seedMaxima(m.vert.size(),zz); std::vector< std::pair<float,VertexPointer> > seedMaxima(m.vert.size(),zz);
@ -323,7 +323,7 @@ static void VoronoiRelaxing(MeshType &m, std::vector<VertexType *> &seedVec, int
newSeeds.push_back(seedMaxima[i].second); newSeeds.push_back(seedMaxima[i].second);
} }
tri::UpdateColor<MeshType>::VertexQualityRamp(m); tri::UpdateColor<MeshType>::PerVertexQualityRamp(m);
for(size_t i=0;i<seedVec.size();++i) for(size_t i=0;i<seedVec.size();++i)
seedVec[i]->C() = Color4b::Black; seedVec[i]->C() = Color4b::Black;