diff --git a/examples/spiral_polygons/fidget_polygon.scad b/examples/spiral_polygons/fidget_polygon.scad index 8a894bfb..636b1802 100644 --- a/examples/spiral_polygons/fidget_polygon.scad +++ b/examples/spiral_polygons/fidget_polygon.scad @@ -15,16 +15,12 @@ module fidget_polygon(model, beginning_radius, fn, n, height, thickness, spacing y = beginning_radius - beginning_radius * cos(theta); dr = y / cos(theta) + thickness + spacing; - pw = pow((beginning_radius + dr) * sin(theta), 2); - - // function a(ri, ro, i) = acos((pow(ro, 2) + pow(ri, 2) - pw * pow(0.985, i)) / (2 * ro * ri)); - + module drawPolygon(r) { circle(r, $fn = fn); } rs = [for(i = [0: n + 1]) beginning_radius + i * dr]; - //as = [for(i = [1: n]) a(rs[i - 1], rs[i], i) / 2]; half_height = height / 2; diff --git a/examples/spiral_polygons/fidget_star.scad b/examples/spiral_polygons/fidget_star.scad index 9b7e86ca..78384fea 100644 --- a/examples/spiral_polygons/fidget_star.scad +++ b/examples/spiral_polygons/fidget_star.scad @@ -29,7 +29,6 @@ module fidget_star(model, r1, r2, n, number_of_stars, height, thickness, spacing y = r2 - r2 * cos(theta); dr = y / cos(theta) + thickness + spacing; - pw = pow((r2 + dr) * sin(theta), 2); r_ratio = r1 / r2; @@ -80,12 +79,10 @@ module fidget_star(model, r1, r2, n, number_of_stars, height, thickness, spacing offset(ring_thickness / 3, $fn = n) offset(delta = -thickness) star(rs2[number_of_stars] * s[number_of_stars] * r_ratio, rs2[number_of_stars] * s[number_of_stars]); - //star(rs[n] * s[n] - thickness); linear_extrude(thickness * 4, center = true) offset(delta = -ring_thickness) star(rs2[number_of_stars] * s[number_of_stars] * r_ratio, rs2[number_of_stars] * s[number_of_stars]); - //star(rs[n] * s[n] - ring_thickness); } }