1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-13 18:24:28 +02:00
This commit is contained in:
Justin Lin
2019-09-28 20:29:53 +08:00
parent 92c32b70a1
commit c7dacfddd8

View File

@@ -29,11 +29,14 @@ module forest(trunk_angle, max_trunk_length, min_trunk_length, style = "TREES",
if (length > min_trunk_length) { if (length > min_trunk_length) {
// baseline // baseline
if(style != "INVERTED") { if(style != "INVERTED") {
p = t2d(t, [ line2d(
["forward", length], t[0],
["point"] t2d(t, [
]); ["forward", length],
line2d(t[0], p, width); ["point"]
]),
width
);
} else { } else {
inverted_trunk(t, length); inverted_trunk(t, length);
} }