mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 06:08:31 +01:00
add comments
This commit is contained in:
parent
f2f7438257
commit
e39a7311f3
@ -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>
|
use <_impl/_pp_poisson2.scad>
|
||||||
|
|
||||||
function pp_poisson2(size, r, start = undef, k = 30, seed = undef, history = false) =
|
function pp_poisson2(size, r, start = undef, k = 30, seed = undef, history = false) =
|
||||||
@ -9,21 +19,4 @@ function pp_poisson2(size, r, start = undef, k = 30, seed = undef, history = fal
|
|||||||
if(!is_undef(sample)) sample
|
if(!is_undef(sample)) sample
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
history ? [samples, sampling_history(s)] : samples;
|
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);
|
|
||||||
}
|
|
||||||
*/
|
|
@ -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>
|
use <_impl/_pp_poisson3.scad>
|
||||||
|
|
||||||
function pp_poisson3(size, r, start = undef, k = 30, seed = undef, history = false) =
|
function pp_poisson3(size, r, start = undef, k = 30, seed = undef, history = false) =
|
||||||
@ -9,21 +19,4 @@ function pp_poisson3(size, r, start = undef, k = 30, seed = undef, history = fal
|
|||||||
if(!is_undef(sample)) sample
|
if(!is_undef(sample)) sample
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
history ? [samples, sampling_history(s)] : samples;
|
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);
|
|
||||||
}
|
|
||||||
*/
|
|
Loading…
x
Reference in New Issue
Block a user