public static class PoissonSampling.Disk extends Object
The algorithm implemented here is based on Fast Poisson Disk Sampling in Arbitrary Dimensions.
| Constructor and Description |
|---|
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. |
public Disk(long seed,
float diskRadius,
float minDist,
int k,
Callback2d callback)
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.
The samples are distributed evenly on the disk with a minimum distance to one another of at least minDist.
seed - the seed to initialize the random number generator withdiskRadius - the disk radiusminDist - the minimum distance between any two generated samplesk - determines how many samples are tested before rejection. Higher values produce better results. Typical values are 20 to 30callback - will be notified about each sample pointCopyright © 2015–2019 JOML. All rights reserved.