mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-11 09:14:29 +02:00
update demo
This commit is contained in:
@@ -5,6 +5,12 @@ use <experimental/convex_hull.scad>;
|
||||
pt_nums = 50;
|
||||
width = 1;
|
||||
points = [for(i = [0:pt_nums - 1]) rands(-50, 50, 2)];
|
||||
|
||||
hull_pts = convex_hull(points);
|
||||
hull_polyline2d(
|
||||
concat(hull_pts, [hull_pts[0]]),
|
||||
width = width, $fn = 4
|
||||
);
|
||||
|
||||
intersection() {
|
||||
for(line = voronoi_lines(points)) {
|
||||
@@ -14,15 +20,11 @@ intersection() {
|
||||
$fn = 4
|
||||
);
|
||||
}
|
||||
hull()
|
||||
#for(p = points) {
|
||||
translate(p)
|
||||
circle(.5);
|
||||
}
|
||||
|
||||
polygon(hull_pts);
|
||||
}
|
||||
|
||||
hull_pts = convex_hull(points);
|
||||
hull_polyline2d(
|
||||
concat(hull_pts, [hull_pts[0]]),
|
||||
width = width, $fn = 4
|
||||
);
|
||||
#for(p = points) {
|
||||
translate(p)
|
||||
circle(.5);
|
||||
}
|
Reference in New Issue
Block a user