Skip to content

Instantly share code, notes, and snippets.

@cdr6934
Last active December 18, 2023 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdr6934/c76b513ac5e9da1ec8a99e660cbb5b35 to your computer and use it in GitHub Desktop.
Save cdr6934/c76b513ac5e9da1ec8a99e660cbb5b35 to your computer and use it in GitHub Desktop.
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