mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-11 17:24:20 +02:00
add voronoi_demo
This commit is contained in:
14
src/experimental/demo/voronoi_lines_demo.scad
Normal file
14
src/experimental/demo/voronoi_lines_demo.scad
Normal file
@@ -0,0 +1,14 @@
|
||||
use <hull_polyline2d.scad>;
|
||||
use <experimental/voronoi_lines.scad>;
|
||||
|
||||
pt_nums = 50;
|
||||
width = 1;
|
||||
points = [for(i = [0:pt_nums - 1]) rands(-50, 50, 2)];
|
||||
|
||||
for(line = voronoi_lines(points)) {
|
||||
hull_polyline2d(
|
||||
line,
|
||||
width = width,
|
||||
$fn = 4
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user