SkillAgentSearch skills...

Poisson

n-dimensional poisson-disk distribution generation for rust.

Install / Use

/learn @WaDelma/Poisson
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

poisson

Documentation Crates.io License: MIT Build Status Coverage Status

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

It generates distribution of points in [0, 1)<sup>d</sup> where:

  • For each point there is disk of certain radius which doesn't intersect with any other disk of other points
  • Samples fill the space uniformly

Due it's blue noise properties poisson-disk distribution can be used for object placement in procedural texture/world generation, as source distribution for digital stipling, as distribution for sampling in rendering or for (re)meshing.

Usage

Works with nalgebra 0.16 and rand 0.5

extern crate nalgebra as na;

use rand::FromEntropy;
use rand::rngs::SmallRng;

use poisson::{Builder, Type, algorithm};

fn main() {
    let poisson =
        Builder::<_, na::Vector2<f64>>::with_radius(0.1, Type::Normal)
            .build(SmallRng::from_entropy(), algorithm::Ebeida);
    println!("{:?}", poisson.generate());
}
View on GitHub
GitHub Stars11
CategoryDevelopment
Updated7mo ago
Forks9

Languages

Rust

Security Score

82/100

Audited on Aug 27, 2025

No findings