mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-03-14 02:59:42 +01:00
fix symbols
This commit is contained in:
parent
de08b72240
commit
456ed095ea
@ -1,10 +1,10 @@
|
||||
use <experimental/lsystem3.scad>;
|
||||
use <hull_polyline3d.scad>;
|
||||
|
||||
for(line = plant()) {
|
||||
for(line = hilbert_curve()) {
|
||||
hull_polyline3d(
|
||||
[line[0], line[1]],
|
||||
thickness = 0.25,
|
||||
thickness = 0.5,
|
||||
$fn = 4
|
||||
);
|
||||
}
|
||||
@ -18,7 +18,7 @@ function tree1(n = 4, angle = 22.5, leng = 1, heading = 0, start = [0, 0, 0]) =
|
||||
)
|
||||
lsystem3(axiom, rules, n, angle, leng, heading, start);
|
||||
|
||||
function tree2(n = 4, angle = 18, leng = 1, heading = 0, start = [0, 0, 0]) =
|
||||
function tree2(n = 5, angle = 18, leng = 1, heading = 0, start = [0, 0, 0]) =
|
||||
let(
|
||||
axiom = "BBBBBA",
|
||||
rules = [
|
||||
@ -44,10 +44,10 @@ function hilbert_curve(n = 3, angle = 90, leng = 1, heading = 0, start = [0, 0,
|
||||
let(
|
||||
axiom = "A",
|
||||
rules = [
|
||||
["A", "B-F+CFC+F-D&F∧D-F+&&CFC+F+B//"],
|
||||
["B", "A&F∧CFB∧F∧D∧∧-F-D∧|F∧B|FC∧F∧A//"],
|
||||
["C", "|D∧|F∧B-F+C∧F∧A&&FA&F∧C+F+B∧F∧D//"],
|
||||
["D", "|CFB-F+B|FA&F∧A&&FB-F+B|FC//"]
|
||||
["A", "B-F+CFC+F-D&F^D-F+&&CFC+F+B//"],
|
||||
["B", "A&F^CFB^F^D^^-F-D^|F^B|FC^F^A//"],
|
||||
["C", "|D^|F^B-F+C^F^A&&FA&F^C+F+B^F^D//"],
|
||||
["D", "|CFB-F+B|FA&F^A&&FB-F+B|FC//"]
|
||||
]
|
||||
)
|
||||
lsystem3(axiom, rules, n, angle, leng, heading, start);
|
||||
|
Loading…
x
Reference in New Issue
Block a user