Slight change of the PoissonDiskPruning interface. Removed a useless parameter (the original surface mesh)
This commit is contained in:
parent
0f34456c92
commit
d61c5c24a1
|
@ -1175,7 +1175,7 @@ static void ComputePoissonSampleRadii(MetroMesh &sampleMesh, ScalarType diskRadi
|
|||
}
|
||||
|
||||
// Trivial approach that puts all the samples in a UG and removes all the ones that surely do not fit the
|
||||
static void PoissonDiskPruning(MetroMesh &origMesh, VertexSampler &ps, MetroMesh &montecarloMesh,
|
||||
static void PoissonDiskPruning(VertexSampler &ps, MetroMesh &montecarloMesh,
|
||||
ScalarType diskRadius, const struct PoissonDiskParam pp=PoissonDiskParam())
|
||||
{
|
||||
// spatial index of montecarlo samples - used to choose a new sample to insert
|
||||
|
@ -1187,7 +1187,8 @@ static void PoissonDiskPruning(MetroMesh &origMesh, VertexSampler &ps, MetroMesh
|
|||
int t0 = clock();
|
||||
|
||||
// inflating
|
||||
BoxType bb=origMesh.bbox;
|
||||
BoxType bb=montecarloMesh.bbox;
|
||||
assert(!bb.IsNull());
|
||||
bb.Offset(cellsize);
|
||||
|
||||
int sizeX = std::max(1.0f,bb.DimX() / cellsize);
|
||||
|
|
Loading…
Reference in New Issue