From 73e45d479eb6cce0ffe6da7a4f2df489367aea1c Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Wed, 16 Mar 2011 14:07:21 +0000 Subject: [PATCH] updated to the new geodesic.h --- src/meshlabplugins/filter_sampling/voronoi_clustering.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meshlabplugins/filter_sampling/voronoi_clustering.h b/src/meshlabplugins/filter_sampling/voronoi_clustering.h index 26f908b67..b7637798b 100644 --- a/src/meshlabplugins/filter_sampling/voronoi_clustering.h +++ b/src/meshlabplugins/filter_sampling/voronoi_clustering.h @@ -98,7 +98,7 @@ static void VoronoiColoring(MeshType &m, std::vector &seedVec, boo typename MeshType::template PerVertexAttributeHandle sources; sources = tri::Allocator::AddPerVertexAttribute (m,"sources"); assert(tri::Allocator::IsValidHandle(m,sources)); - g.FarthestVertex(m,seedVec,farthest,dist,&sources); + g.FarthestVertex(m,seedVec,farthest,dist,std::numeric_limits::max(),&sources); if(frontierFlag) { @@ -160,7 +160,7 @@ static void VoronoiRelaxing(MeshType &m, std::vector &seedVec, int typename MeshType::template PerVertexAttributeHandle sources; sources = tri::Allocator::AddPerVertexAttribute (m,"sources"); - g.FarthestVertex(m,seedVec,farthest,dist,&sources); + g.FarthestVertex(m,seedVec,farthest,dist,std::numeric_limits::max(),&sources); std::pair zz(0,0); std::vector< std::pair > regionArea(m.vert.size(),zz);