1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-14 10:44:48 +02:00

use sf_solidify

This commit is contained in:
Justin Lin
2021-06-20 14:52:56 +08:00
parent 0aea981273
commit 3ba9e6a3ce

View File

@@ -2,8 +2,8 @@ use <shape_taiwan.scad>;
use <golden_spiral.scad>; use <golden_spiral.scad>;
use <golden_spiral_extrude.scad>; use <golden_spiral_extrude.scad>;
use <bezier_surface.scad>; use <bezier_surface.scad>;
use <function_grapher.scad>;
use <util/reverse.scad>; use <util/reverse.scad>;
use <surface/sf_solidify.scad>;
// smaller values are better // smaller values are better
taiwan_fineness = 5; taiwan_fineness = 5;
@@ -38,16 +38,20 @@ module golden_taiwan(taiwan_fineness, wave_fineness) {
g = bezier_surface(t_step, ctrl_pts); g = bezier_surface(t_step, ctrl_pts);
difference() { bottom = [
function_grapher(g, thickness); for(y = [0:len(g) - 1])
translate([-1, -1, -120]) cube([220, 130, 110]); [
} for(x = [0:len(g[0]) - 1])
let(p = g[y][x])
[p[0], p[1], -10]
]
];
sf_solidify(g, bottom);
} }
taiwan(); taiwan();
wave();
wave();
} }
golden_taiwan(taiwan_fineness, wave_fineness); golden_taiwan(taiwan_fineness, wave_fineness);