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());