mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-13 18:24:28 +02:00
refactor
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user