1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-06 06:47:46 +02:00
This commit is contained in:
Justin Lin
2022-06-30 16:09:33 +08:00
parent 0e8b676c09
commit b0c521f8c1
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
use <_impl/_pp_poisson.scad> use <_impl/_pp_poisson2.scad>
function pp_poisson(size, r, start, k = 30, seed = undef, history = false) = function pp_poisson2(size, r, start, k = 30, seed = undef, history = false) =
let( let(
s = _pp_poisson(sampling(size, r, start, k), is_undef(seed) ? floor(rands(0, 1000, 1)[0]) : seed), s = _pp_poisson(sampling(size, r, start, k), is_undef(seed) ? floor(rands(0, 1000, 1)[0]) : seed),
samples = [ samples = [
@@ -11,11 +11,11 @@ function pp_poisson(size, r, start, k = 30, seed = undef, history = false) =
history ? [samples, sampling_history(s)] : samples; history ? [samples, sampling_history(s)] : samples;
/* /*
use <pp/pp_poisson.scad> use <pp/pp_poisson2.scad>
use <polyline_join.scad> use <polyline_join.scad>
pts_history = pp_poisson([100, 100], 5, seed = 1, history = true); pts_history = pp_poisson2([100, 100], 5, seed = 1, history = true);
for(p = pts_history[0]) { for(p = pts_history[0]) {
translate(p) translate(p)
circle(1); circle(1);