From 036a84606f9ac1f5275c8ba1fa349fe1b2e3fdff Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Tue, 15 Jun 2021 14:29:52 +0800 Subject: [PATCH] rename --- examples/spiral_polygons/fidget_star.scad | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/spiral_polygons/fidget_star.scad b/examples/spiral_polygons/fidget_star.scad index 055848f5..34a68b7c 100644 --- a/examples/spiral_polygons/fidget_star.scad +++ b/examples/spiral_polygons/fidget_star.scad @@ -31,7 +31,7 @@ module fidget_star(r1, r2, n, number_of_stars, height, thickness, spacing, slope r_ratio = r1 / r2; - module drawPolygon(r1, r2) { + module star(r1, r2) { polygon(shape_starburst(r1, r2, n)); } @@ -46,17 +46,17 @@ module fidget_star(r1, r2, n, number_of_stars, height, thickness, spacing, slope translate([0, 0, -half_height]) { linear_extrude(half_height, scale = s[0]) difference() { - drawPolygon(r1, r2); + star(r1, r2); offset(delta = -thickness) - drawPolygon(r1, r2); + star(r1, r2); } for(i = [1:number_of_stars - 1]) { linear_extrude(half_height, scale = s[i]) difference() { - drawPolygon(rs1[i], rs2[i]); + star(rs1[i], rs2[i]); offset(delta = -thickness) - drawPolygon(rs1[i], rs2[i]); + star(rs1[i], rs2[i]); } } }