updated to the new geodesic.h

This commit is contained in:
Paolo Cignoni cignoni 2011-03-16 14:07:21 +00:00
parent 96935b06cc
commit 73e45d479e

View File

@ -98,7 +98,7 @@ static void VoronoiColoring(MeshType &m, std::vector<VertexType *> &seedVec, boo
typename MeshType::template PerVertexAttributeHandle<VertexPointer> sources;
sources = tri::Allocator<CMeshO>::AddPerVertexAttribute<VertexPointer> (m,"sources");
assert(tri::Allocator<CMeshO>::IsValidHandle(m,sources));
g.FarthestVertex(m,seedVec,farthest,dist,&sources);
g.FarthestVertex(m,seedVec,farthest,dist,std::numeric_limits<ScalarType>::max(),&sources);
if(frontierFlag)
{
@ -160,7 +160,7 @@ static void VoronoiRelaxing(MeshType &m, std::vector<VertexType *> &seedVec, int
typename MeshType::template PerVertexAttributeHandle<VertexPointer> sources;
sources = tri::Allocator<CMeshO>::AddPerVertexAttribute<VertexPointer> (m,"sources");
g.FarthestVertex(m,seedVec,farthest,dist,&sources);
g.FarthestVertex(m,seedVec,farthest,dist,std::numeric_limits<ScalarType>::max(),&sources);
std::pair<float,VertexPointer> zz(0,0);
std::vector< std::pair<float,VertexPointer> > regionArea(m.vert.size(),zz);