1
0
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:
Justin Lin
2020-03-02 15:56:32 +08:00
parent d6213ffddb
commit 0a629cefb4

View 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
);
}