1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-25 23:46:32 +02:00

fix surface error

This commit is contained in:
Justin Lin
2021-06-20 14:40:27 +08:00
parent 7d1f168102
commit 4a5251579e

View File

@@ -3,6 +3,7 @@ use <golden_spiral.scad>;
use <golden_spiral_extrude.scad>;
use <bezier_surface.scad>;
use <function_grapher.scad>;
use <util/reverse.scad>;
// 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();
}