1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-10 16:54:23 +02:00
This commit is contained in:
Justin Lin
2020-04-15 14:05:35 +08:00
parent 4416a1276f
commit b0f2445c78

View File

@@ -1,7 +1,7 @@
use <experimental/lsystem3.scad>; use <experimental/lsystem3.scad>;
use <hull_polyline3d.scad>; use <hull_polyline3d.scad>;
for(line = fern_leaf()) { for(line = fern()) {
hull_polyline3d( hull_polyline3d(
[line[0], line[1]], [line[0], line[1]],
thickness = 0.25, thickness = 0.25,
@@ -30,7 +30,7 @@ function hilbert_curve(n = 3, angle = 90, leng = 1, heading = 0, start = [0, 0,
) )
lsystem3(axiom, rules, n, angle, leng, heading, start); lsystem3(axiom, rules, n, angle, leng, heading, start);
function fern_leaf(n = 8, angle = 4, leng = 1, heading = 0, start = [0, 0, 0]) = function fern(n = 8, angle = 4, leng = 1, heading = 0, start = [0, 0, 0]) =
let( let(
axiom = "EEEA", axiom = "EEEA",
rules = [ rules = [