1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-11 01:04:07 +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) {
// baseline
if(style != "INVERTED") {
p = t2d(t, [
["forward", length],
["point"]
]);
line2d(t[0], p, width);
line2d(
t[0],
t2d(t, [
["forward", length],
["point"]
]),
width
);
} else {
inverted_trunk(t, length);
}