poisson 0.6.0

Poisson-disk distribution generator.
docs.rs failed to build poisson-0.6.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 PoissonGen which is built using struct PoissonDisk.

PoissonDisk is generic to Rng supplied and VecLike which describes generation dimension.
VecLike describes what traits from std, nalgebra and num crates are needed to be implemented for samples so the algorithmn can function.
When building a PoissonDisk periodicity can be set from builder to make the distribution to wrap around.

When PoissonGen is created using build_samples the algorithm calculates approximately the radius that is needed to create distribution with that many samples.
Building of PoissonDisk with method build_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!