From 3edd987ef27d85d3f42df7f91982fd6cdb9f0f18 Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 17 Jun 2014 15:01:18 +0000 Subject: [PATCH] corrected small bug in the BuildVolumeSampling member of the voronoi volumetric sampling --- vcg/complex/algorithms/voronoi_volume_sampling.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;