Small change in poisson point sampling, we should call the sampler class with the input mesh

This commit is contained in:
Paolo Cignoni 2009-03-26 10:51:44 +00:00
parent 4420e5102b
commit 9a0b315fb0
1 changed files with 2 additions and 1 deletions

View File

@ -930,7 +930,8 @@ static void Poissondisk(MetroMesh &origMesh, VertexSampler &ps, MetroMesh &monte
tri::Allocator<MetroMesh>::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());