diff --git a/vcg/complex/algorithms/voronoi_volume_sampling.h b/vcg/complex/algorithms/voronoi_volume_sampling.h index 59926b33..690beb08 100644 --- a/vcg/complex/algorithms/voronoi_volume_sampling.h +++ b/vcg/complex/algorithms/voronoi_volume_sampling.h @@ -359,7 +359,7 @@ float DistanceFromVoronoiFace(Point3f p_point) std::vector seedPts(pruningVec.size()); for(size_t i=0;iP(); - tri::Build(this->seedMesh,pruningVec); + tri::Build(this->seedMesh,seedPts); // Kdtree must be rebuilt at the end of each step; VertexConstDataWrapper vdw(seedMesh); if(seedTree) delete seedTree;