1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 06:08:31 +01:00

add comments

This commit is contained in:
Justin Lin 2022-07-02 17:33:50 +08:00
parent f2f7438257
commit e39a7311f3
2 changed files with 22 additions and 36 deletions

View File

@ -1,3 +1,13 @@
/**
* pp_poisson2.scad
*
* @copyright Justin Lin, 2022
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-pp_poisson2.html
*
**/
use <_impl/_pp_poisson2.scad>
function pp_poisson2(size, r, start = undef, k = 30, seed = undef, history = false) =
@ -10,20 +20,3 @@ function pp_poisson2(size, r, start = undef, k = 30, seed = undef, history = fal
]
)
history ? [samples, sampling_history(s)] : samples;
/*
use <pp/pp_poisson2.scad>
use <polyline_join.scad>
pts_history = pp_poisson2([100, 100], 5, seed = 1, history = true);
for(p = pts_history[0]) {
translate(p)
circle(1);
}
for(h = pts_history[1]) {
polyline_join(h)
circle(.5);
}
*/

View File

@ -1,3 +1,13 @@
/**
* pp_poisson3.scad
*
* @copyright Justin Lin, 2022
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib3x-pp_poisson3.html
*
**/
use <_impl/_pp_poisson3.scad>
function pp_poisson3(size, r, start = undef, k = 30, seed = undef, history = false) =
@ -10,20 +20,3 @@ function pp_poisson3(size, r, start = undef, k = 30, seed = undef, history = fal
]
)
history ? [samples, sampling_history(s)] : samples;
/*
use <pp/pp_poisson.scad>
use <polyline_join.scad>
pts_history = pp_poisson3([50, 50, 50], 10, seed = 2, history = true);
for(p = pts_history[0]) {
translate(p)
sphere(2);
}
for(h = pts_history[1]) {
polyline_join(h)
sphere(1);
}
*/