mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-06 14:56:47 +02:00
fix symbols
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
use <experimental/lsystem3.scad>;
|
use <experimental/lsystem3.scad>;
|
||||||
use <hull_polyline3d.scad>;
|
use <hull_polyline3d.scad>;
|
||||||
|
|
||||||
for(line = plant()) {
|
for(line = hilbert_curve()) {
|
||||||
hull_polyline3d(
|
hull_polyline3d(
|
||||||
[line[0], line[1]],
|
[line[0], line[1]],
|
||||||
thickness = 0.25,
|
thickness = 0.5,
|
||||||
$fn = 4
|
$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);
|
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(
|
let(
|
||||||
axiom = "BBBBBA",
|
axiom = "BBBBBA",
|
||||||
rules = [
|
rules = [
|
||||||
@@ -44,10 +44,10 @@ function hilbert_curve(n = 3, angle = 90, leng = 1, heading = 0, start = [0, 0,
|
|||||||
let(
|
let(
|
||||||
axiom = "A",
|
axiom = "A",
|
||||||
rules = [
|
rules = [
|
||||||
["A", "B-F+CFC+F-D&F∧D-F+&&CFC+F+B//"],
|
["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//"],
|
["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//"],
|
["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//"]
|
["D", "|CFB-F+B|FA&F^A&&FB-F+B|FC//"]
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
lsystem3(axiom, rules, n, angle, leng, heading, start);
|
lsystem3(axiom, rules, n, angle, leng, heading, start);
|
||||||
|
Reference in New Issue
Block a user