1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00
dotSCAD/docs/lib3x-pp_poisson3.md
2022-07-02 17:32:01 +08:00

883 B

pp_poisson3

Perform poisson sampling over a cube space. An 3D 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 first start point.
  • k : Default to 30. The k constant of Fast Poisson Disk Sampling in Arbitrary Dimensions.
  • seed : Optional. Seed value for random number generator for repeatable results.

Examples

use <pp/pp_poisson3.scad>
use <polyline_join.scad>

points = pp_poisson3([50, 50, 50], 10);
for(p = points) {
    translate(p)
        sphere(5, $fn = 48);
}

pp_poisson3