poisson 0.4.0

Poisson-disk distribution generator.
docs.rs failed to build poisson-0.4.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: poisson-0.10.1

poisson

poisson is library for generating n-dimensional poisson-disk distributions.

Build Status

Using poisson

poisson is used through struct PoissonDisk.
PoissonDisk is generic for Rng supplied and VecLike.
VecLike describes what traits from std, nalgebra and num crates needs to be implemented for samples so the algorithmn can function.
When constructing a PoissonDisk boolean for periodicity can be used to make the distribution to wrap around.
When PoissonDisk is created using with_samples the algorithm calculates approximately the radius that is needed to create distribution with that many samples.
Construction of PoissonDisk with method with_samples for non-perioditic distributions is currently restricted to 2, 3 and 4 dimensions (due need of contanstants for each dimension).
Samples can be given to the method for creating distribution to make it take those account when creating the distribution.

Documentation is here

TODO

  • Can quadtree be compressed? Skip Quadtree?
  • Benchmarks!