diff --git a/examples/taiwan/golden_taiwan.scad b/examples/taiwan/golden_taiwan.scad index 845217e9..3388e685 100644 --- a/examples/taiwan/golden_taiwan.scad +++ b/examples/taiwan/golden_taiwan.scad @@ -2,8 +2,8 @@ use ; use ; use ; use ; -use ; use ; +use ; // smaller values are better taiwan_fineness = 5; @@ -38,16 +38,20 @@ module golden_taiwan(taiwan_fineness, wave_fineness) { g = bezier_surface(t_step, ctrl_pts); - difference() { - function_grapher(g, thickness); - translate([-1, -1, -120]) cube([220, 130, 110]); - } + bottom = [ + for(y = [0:len(g) - 1]) + [ + for(x = [0:len(g[0]) - 1]) + let(p = g[y][x]) + [p[0], p[1], -10] + ] + ]; + + sf_solidify(g, bottom); } - taiwan(); - - wave(); - + taiwan(); + wave(); } golden_taiwan(taiwan_fineness, wave_fineness); \ No newline at end of file