mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-17 18:14:38 +00:00
updated to the new geodesic.h
This commit is contained in:
parent
96935b06cc
commit
73e45d479e
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user