From e8619fe3ff3961c163d5f303ea0fc0581018a97c Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sun, 20 Jun 2021 17:20:31 +0800 Subject: [PATCH] use sf_splines --- examples/taiwan/golden_taiwan.scad | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/taiwan/golden_taiwan.scad b/examples/taiwan/golden_taiwan.scad index 3388e685..ed65984e 100644 --- a/examples/taiwan/golden_taiwan.scad +++ b/examples/taiwan/golden_taiwan.scad @@ -1,8 +1,9 @@ use ; use ; use ; -use ; +use ; use ; +use ; use ; // smaller values are better @@ -36,7 +37,8 @@ module golden_taiwan(taiwan_fineness, wave_fineness) { [[0, 123, 0], [60, 123, -35], [90, 123, 60], [200, 123, 45]] ]); - g = bezier_surface(t_step, ctrl_pts); + bezier = function(points) bezier_curve(t_step, points); + g = sf_splines(ctrl_pts, bezier); bottom = [ for(y = [0:len(g) - 1])