mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-11 01:04:07 +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) {
|
||||
// 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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user