Small change in poisson point sampling, we should call the sampler class with the input mesh
This commit is contained in:
parent
4420e5102b
commit
9a0b315fb0
|
@ -930,7 +930,8 @@ static void Poissondisk(MetroMesh &origMesh, VertexSampler &ps, MetroMesh &monte
|
||||||
tri::Allocator<MetroMesh>::AddVertices(supportMesh,1);
|
tri::Allocator<MetroMesh>::AddVertices(supportMesh,1);
|
||||||
supportMesh.vert.back().P() = sp->P();
|
supportMesh.vert.back().P() = sp->P();
|
||||||
supportMesh.vert.back().Q() = sampleRadius;
|
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
|
// add to control spatial index
|
||||||
checkSHT.Add(&supportMesh.vert.back());
|
checkSHT.Add(&supportMesh.vert.back());
|
||||||
|
|
Loading…
Reference in New Issue