Package micycle.pgs.commons
Class PoissonDistribution
java.lang.Object
micycle.pgs.commons.PoissonDistribution
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<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.List<processing.core.PVector>
Deprecated.Returns the point set generated by most recent call togenerate(double, double, double, double, double, int)
.
-
Constructor Details
-
PoissonDistribution
public PoissonDistribution()Deprecated. -
PoissonDistribution
public PoissonDistribution(long seed) Deprecated.
-
-
Method Details
-
getPoints
Deprecated.Returns the point set generated by most recent call togenerate(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 minimumymin
- y-coordinate of boundary minimumxmax
- x-coordinate of boundary maximumymax
- y-coordinate of boundary maximumminDist
- minimum euclidean distance between any two pointsrejectionLimit
- 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
-
PoissonDistributionJRUS