Skip to content

Instantly share code, notes, and snippets.

@feuerrot
Last active May 27, 2023 12:06
Show Gist options
  • Save feuerrot/3e7b395e85c3dc34edfdbe2b45bf7197 to your computer and use it in GitHub Desktop.
Save feuerrot/3e7b395e85c3dc34edfdbe2b45bf7197 to your computer and use it in GitHub Desktop.
$fn=24;
dim = [50, 50, 50];
wall = 0.3;
hole = [dim.y/11, 0, 3];
difference(){
cylinder(d1=dim.x, d2=dim.y, h=dim.z);
translate([0, 0, wall]) cylinder(d1=dim.x-wall*4, d2=dim.y-wall*4, h=dim.z-wall);
for (r = [7.5:15:360]){
for (h = [wall:2*wall+hole.z:dim.z]) {
rotate([0, 0, r]) translate([0, -hole.x/2, h]) cube([dim.y, hole.x, hole.z]);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment