1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-16 19:54:29 +02:00

use sf_splines

This commit is contained in:
Justin Lin
2021-06-20 17:20:31 +08:00
parent db9a43e073
commit e8619fe3ff

View File

@@ -1,8 +1,9 @@
use <shape_taiwan.scad>;
use <golden_spiral.scad>;
use <golden_spiral_extrude.scad>;
use <bezier_surface.scad>;
use <bezier_curve.scad>;
use <util/reverse.scad>;
use <surface/sf_splines.scad>;
use <surface/sf_solidify.scad>;
// 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])