1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-14 02:34:12 +02:00

add px_polygon_demo

This commit is contained in:
Justin Lin
2020-03-12 10:45:25 +08:00
parent 69bf03d78e
commit 26f150e138

View File

@@ -0,0 +1,13 @@
use <experimental/px_polygon.scad>;
use <shape_starburst.scad>;
points = [
for(pt = shape_starburst(20, 10, 6))
[round(pt[0]), round(pt[1])]
];
for(p = px_polygon(points)) {
translate(p)
linear_extrude(1, scale = 0.5)
square(1, center = true);
}