From 3ba9e6a3cefdefbac84ffcc6a39c41bef8d6b4bb Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sun, 20 Jun 2021 14:52:56 +0800 Subject: [PATCH] use sf_solidify --- examples/taiwan/golden_taiwan.scad | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) 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