1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-19 13:01:37 +02:00
This commit is contained in:
Justin Lin
2020-04-16 08:26:06 +08:00
parent 8b87642475
commit 9cf9fd5713

View File

@@ -1,7 +1,7 @@
use <experimental/lsystem3.scad>;
use <hull_polyline3d.scad>;
for(line = plant()) {
for(line = vine()) {
hull_polyline3d(
[line[0], line[1]],
thickness = 0.25,
@@ -41,7 +41,7 @@ function fern(n = 8, angle = 4, leng = 1, heading = 0, start = [0, 0, 0]) =
)
lsystem3(axiom, rules, n, angle, leng, heading, start, forward_chars = "ABCDE");
function plant(n = 3, angle = 18, leng = 1, heading = 0, start = [0, 0, 0]) =
function vine(n = 3, angle = 18, leng = 1, heading = 0, start = [0, 0, 0]) =
let(
axiom = "--F",
rules = [