diff --git a/src/experimental/demo/px_surround_demo.scad b/src/experimental/demo/px_surround_demo.scad new file mode 100644 index 00000000..643f4eef --- /dev/null +++ b/src/experimental/demo/px_surround_demo.scad @@ -0,0 +1,27 @@ +use ; +use ; +use ; +use ; +use ; + +pts = px_circle(10, true); +for(p = pts) { + translate(p) + square(1, center = true); +} +#hull_polyline2d(px_surround(pts), width = .1); + + +pentagram = [ + for(pt = shape_pentagram(15)) + [round(pt[0]), round(pt[1])] +]; +pts2 = px_polyline(concat(pentagram, [pentagram[0]])); +translate([30, 0]) { + for(pt = pts2) { + translate(pt) + linear_extrude(1, scale = 0.5) + square(1, center = true); + } + #hull_polyline2d(px_surround(pts2), width = .1); +} \ No newline at end of file