Contains classes for generating sampling patterns.
-
void
Create numSamples
number of samples on a spiral with maximum radius radius
around the center using numRotations
number of rotations
along the spiral, and call the given callback
for each sample generated.
void
Create numSamples
number of samples on a spiral with maximum radius radius
around the center using numRotations
number of rotations
along the spiral, and call the given callback
for each sample generated.
Generate 'best candidate' sample positions and call the given callback
for each generated sample.
Generate 'best candidate' sample positions and call the given callback
for each generated sample.
void
Generate n * n
random sample positions in the unit square of x, y = [-1..+1]
.
void
Generate n * n
random sample positions in the unit square of x, y = [-1..+1]
.
Disk(long seed,
float diskRadius,
float minDist,
int k,
Callback2d callback)
Create a new instance of
PoissonSampling.Disk
which computes poisson-distributed samples on a disk with the given radius
diskRadius
and notifies the given
callback
for each found sample point.
Create a new instance of
UniformSampling.Disk
, initialize the random number generator with the given
seed
and generate
numSamples
number of sample
positions on the unit disk, and call the given
callback
for each sample generate.