From 4a5251579eb1a47cbdf24e038d104f917ac6cd44 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sun, 20 Jun 2021 14:40:27 +0800 Subject: [PATCH] fix surface error --- examples/taiwan/golden_taiwan.scad | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/taiwan/golden_taiwan.scad b/examples/taiwan/golden_taiwan.scad index 75f41f3a..845217e9 100644 --- a/examples/taiwan/golden_taiwan.scad +++ b/examples/taiwan/golden_taiwan.scad @@ -3,6 +3,7 @@ use ; use ; use ; use ; +use ; // smaller values are better taiwan_fineness = 5; @@ -13,7 +14,7 @@ wave_fineness = 0.05; module golden_taiwan(taiwan_fineness, wave_fineness) { module taiwan() { - mirror_taiwan = [for(pt = shape_taiwan(15)) [pt[0] * -1, pt[1]]]; + mirror_taiwan = reverse([for(pt = shape_taiwan(15)) [pt[0] * -1, pt[1]]]); translate([127.5, 42.5, 83]) golden_spiral_extrude( mirror_taiwan, @@ -28,12 +29,12 @@ module golden_taiwan(taiwan_fineness, wave_fineness) { t_step = wave_fineness; thickness = 100; - ctrl_pts = [ + ctrl_pts = reverse([ [[0, 0, 20], [60, 0, -35], [90, 0, 60], [200, 0, 5]], [[0, 50, 30], [100, 60, -25], [120, 50, 120], [200, 50, 5]], [[0, 100, 0], [60, 120, 35], [90, 100, 60], [200, 100, 45]], [[0, 123, 0], [60, 123, -35], [90, 123, 60], [200, 123, 45]] - ]; + ]); g = bezier_surface(t_step, ctrl_pts); @@ -45,7 +46,7 @@ module golden_taiwan(taiwan_fineness, wave_fineness) { taiwan(); - render() wave(); + wave(); }