2019-04-22 08:08:41 +00:00
|
|
|
include <BOSL2/std.scad>
|
2020-03-22 08:14:26 +00:00
|
|
|
module tree(l=1500, sc=0.7, depth=10)
|
2020-05-30 02:04:34 +00:00
|
|
|
recolor("lightgray")
|
2024-03-04 03:19:14 +00:00
|
|
|
cylinder(h=l, d1=l/5, d2=l/5*sc)
|
2020-05-30 02:04:34 +00:00
|
|
|
attach(TOP)
|
|
|
|
if (depth>0)
|
|
|
|
zrot(90)
|
|
|
|
zrot_copies(n=2)
|
|
|
|
yrot(30) tree(depth=depth-1, l=l*sc, sc=sc);
|
|
|
|
else
|
|
|
|
recolor("springgreen")
|
|
|
|
yscale(0.67)
|
|
|
|
teardrop(d=l*3, l=1, anchor=BOT, spin=90);
|
2020-03-22 08:14:26 +00:00
|
|
|
tree();
|
2019-04-17 02:16:50 +00:00
|
|
|
|
|
|
|
|
2020-05-30 02:04:34 +00:00
|
|
|
// vim: expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap
|