mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 14:18:13 +01:00
841 B
841 B
pp_poisson2
Perform poisson sampling over a rectangle area. An implementation of Fast Poisson Disk Sampling in Arbitrary Dimensions.
Since: 3.3
Parameters
size
: The size[x, y]
of the rectangle.r
: The minimum distance between samples.start
: Optional. The initial point(s).k
: Default to 30. Thek
constant of Fast Poisson Disk Sampling in Arbitrary Dimensions.seed
: Optional. Seed value for random number generator for repeatable results.
Examples
use <pp/pp_poisson2.scad>
points = pp_poisson2([100, 100], 5);
for(p = points) {
translate(p)
circle(1);
}