From 9a0b315fb0539f6f6badf97d275de39b39542e5b Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 26 Mar 2009 10:51:44 +0000 Subject: [PATCH] Small change in poisson point sampling, we should call the sampler class with the input mesh --- vcg/complex/trimesh/point_sampling.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vcg/complex/trimesh/point_sampling.h b/vcg/complex/trimesh/point_sampling.h index 1f39e2a8..efc37eff 100644 --- a/vcg/complex/trimesh/point_sampling.h +++ b/vcg/complex/trimesh/point_sampling.h @@ -930,7 +930,8 @@ static void Poissondisk(MetroMesh &origMesh, VertexSampler &ps, MetroMesh &monte tri::Allocator::AddVertices(supportMesh,1); supportMesh.vert.back().P() = sp->P(); supportMesh.vert.back().Q() = sampleRadius; - ps.AddVert(supportMesh.vert.back()); + //ps.AddVert(supportMesh.vert.back()); Small change, we should call the sampler class with the input mesh. + ps.AddVert(*sp); // add to control spatial index checkSHT.Add(&supportMesh.vert.back());