Skip to content

Instantly share code, notes, and snippets.

@paulhayes
Created March 4, 2024 12:42
Show Gist options
  • Save paulhayes/317be7449acfa23e5107b832198a7032 to your computer and use it in GitHub Desktop.
Save paulhayes/317be7449acfa23e5107b832198a7032 to your computer and use it in GitHub Desktop.
slot_dim = 15.4;
thickness = 4;
length = 40;
outer_scale = (slot_dim+2*thickness)/slot_dim;
difference(){
hull() for(a=[0,90,180,270]){
rotate([45,0,a]) rotate([90,0,0])
scale(outer_scale) translate([-slot_dim/2,-slot_dim/2,10]) cube([slot_dim,slot_dim,length/outer_scale]);
}
union() for(a=[0,90,180,270]){
rotate([45,0,a]) rotate([90,0,0])
translate([-slot_dim/2,-slot_dim/2,22]) cube([slot_dim,slot_dim,length]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment