Last active
December 18, 2023 06:25
-
-
Save cdr6934/c76b513ac5e9da1ec8a99e660cbb5b35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module arm(r, marg) { | |
union() { | |
for(i = [0:1:20]) | |
{ | |
translate([rands(-5,5,1)[0],rands(-5,5,1)[0],i*r*marg]) { | |
sphere(r); | |
} | |
} | |
} | |
} | |
module branch() { | |
union() { | |
arm(5,0.8); | |
arm(2,0.8); | |
arm(3,0.8); | |
} | |
} | |
branch(); | |
for(i=[0:1:10]) | |
{ | |
ang = rands(-45,45,1)[0]; | |
dis = rands(-30,30,1)[0]; | |
translate([0,0,dis]) { | |
rotate([ang,ang,ang]) { | |
branch(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment