1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-11 17:24:20 +02:00
This commit is contained in:
Justin Lin
2021-04-18 16:41:07 +08:00
parent 6468746766
commit 8ac2f973cc

View File

@@ -1,30 +0,0 @@
use <hull_polyline2d.scad>;
use <experimental/voronoi_lines.scad>;
use <experimental/convex_hull2.scad>;
pt_nums = 50;
width = 1;
points = [for(i = [0:pt_nums - 1]) rands(-50, 50, 2)];
hull_pts = convex_hull2(points);
hull_polyline2d(
concat(hull_pts, [hull_pts[0]]),
width = width, $fn = 4
);
intersection() {
for(line = voronoi_lines(points)) {
hull_polyline2d(
line,
width = width,
$fn = 4
);
}
polygon(hull_pts);
}
#for(p = points) {
translate(p)
circle(.5);
}