Skip to content

azrafe7/UniformPoissonDisk

Repository files navigation

UniformPoissonDisk

Uniform Poisson Disk Sampling.

online js demo

  • supports non-uniform sampling by specifying a per-point distance function
  • a reject function can be used to filter out sampled points (while sampling)
  • optionally a first point can be specified (instead of choosing one randomly inside the sampling area)

TODO

  • write examples for all the use-cases presented in the devmag article
  • optimize methods (split const min distance from parametric distance if feasible)
  • improve comments throughout code (upd code especially)

References

The algorithm is from the "Fast Poisson Disk Sampling in Arbitrary Dimensions" paper by Robert Bridson

Releases

No releases published

Packages

No packages published