mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-17 12:10:47 +02:00
add px_polygon_demo
This commit is contained in:
13
src/experimental/demo/px_polygon_demo.scad
Normal file
13
src/experimental/demo/px_polygon_demo.scad
Normal 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);
|
||||||
|
}
|
Reference in New Issue
Block a user