Class PoissonDistribution

java.lang.Object
micycle.pgs.commons.PoissonDistribution

@Deprecated public final class PoissonDistribution extends Object
Deprecated.
Generates sets of random points via Poisson Disk Sampling. Poisson-disc sampling produces points that are tightly-packed, but no closer to each other than a specified minimum distance, resulting in a more natural and desirable pattern for many applications. This distribution is also described as blue noise.

Implements Martin Roberts’s tweak of "Fast Poisson Disk Sampling in Arbitrary Dimensions" by Robert Bridson.

Author:
Michael Carleton
  • Constructor Details

    • PoissonDistribution

      public PoissonDistribution()
      Deprecated.
    • PoissonDistribution

      public PoissonDistribution(long seed)
      Deprecated.
  • Method Details

    • getPoints

      public List<processing.core.PVector> getPoints()
      Deprecated.
      Returns the point set generated by most recent call to generate(double, double, double, double, double, int).
      Returns:
    • generate

      public List<processing.core.PVector> generate(double xmin, double ymin, double xmax, double ymax, double minDist, int rejectionLimit)
      Deprecated.
      Generates a random point set, having a poisson/blue noise distribution.
      Parameters:
      xmin - x-coordinate of boundary minimum
      ymin - y-coordinate of boundary minimum
      xmax - x-coordinate of boundary maximum
      ymax - y-coordinate of boundary maximum
      minDist - minimum euclidean distance between any two points
      rejectionLimit - the limit on the number of attempts to generate a random valid point around the previous point. Generally 6 is sufficient.
      Returns:
      a set of random points