diff --git a/examples/spiral_polygons/fidget_star.scad b/examples/spiral_polygons/fidget_star.scad index 43d9918c..82982555 100644 --- a/examples/spiral_polygons/fidget_star.scad +++ b/examples/spiral_polygons/fidget_star.scad @@ -77,12 +77,12 @@ module fidget_star(model, r1, r2, n, number_of_stars, height, thickness, spacing difference() { linear_extrude(ring_thickness, scale = 1.02) 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]); + offset(delta = -thickness) + star(rs2[number_of_stars] * s[number_of_stars] * r_ratio, rs2[number_of_stars] * s[number_of_stars]); 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]); + offset(delta = -ring_thickness) + star(rs2[number_of_stars] * s[number_of_stars] * r_ratio, rs2[number_of_stars] * s[number_of_stars]); } } diff --git a/examples/spiral_polygons/helix_lampshade.scad b/examples/spiral_polygons/helix_lampshade.scad index 86b9ad04..f50dc511 100644 --- a/examples/spiral_polygons/helix_lampshade.scad +++ b/examples/spiral_polygons/helix_lampshade.scad @@ -45,7 +45,7 @@ if(model == "JOIN") { color("white") rotate(-5) translate([-(r_circumscribed_circle - width / 2), 0, 0]) - join(r_circumscribed_circle, width, height, layer_h); + join(r_circumscribed_circle, width, height, layer_h); } else if(model == "RING") { color("black") @@ -71,18 +71,18 @@ else { color("white") for(h = [0:2:n - 2]) { - translate([0, 0, layer_h * (h)]) - rotate((h) * 5) { + translate([0, 0, layer_h * h]) + rotate(h * 5) { for(i = [0:2]) { rotate(i * 120) - join(r_circumscribed_circle, width, height, layer_h); + join(r_circumscribed_circle, width, height, layer_h); } translate([0, 0, layer_h]) rotate(65) for(i = [0:2]) { rotate(i * 120) - join(r_circumscribed_circle, width, height, layer_h); + join(r_circumscribed_circle, width, height, layer_h); } } } diff --git a/examples/taiwan/golden_taiwan.scad b/examples/taiwan/golden_taiwan.scad index f985d2d8..388952ea 100644 --- a/examples/taiwan/golden_taiwan.scad +++ b/examples/taiwan/golden_taiwan.scad @@ -45,7 +45,7 @@ module golden_taiwan(taiwan_fineness, wave_fineness) { [ for(x = [0:len(g[0]) - 1]) let(p = g[y][x]) - [p[0], p[1], -10] + [p.x, p.y, -10] ] ]; diff --git a/examples/taiwan/leopard_cat_taiwan.scad b/examples/taiwan/leopard_cat_taiwan.scad index eaa70ab1..0251c8dc 100644 --- a/examples/taiwan/leopard_cat_taiwan.scad +++ b/examples/taiwan/leopard_cat_taiwan.scad @@ -138,9 +138,8 @@ linear_extrude(1.5) difference() { rotate(22.5) polygon(shape_taiwan(250)); - render() for(dot = dots) { + for(dot = dots) { translate(dot[0]) square(0.7 * dot[1]); - } }