You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
540 B

  1. include <BOSL/constants.scad>
  2. use <BOSL/transforms.scad>
  3. use <BOSL/shapes.scad>
  4. switch_body_size = [8, 13, 16];
  5. module switch() {
  6. down(switch_body_size.z/2) cube(switch_body_size, center=true);
  7. cylinder(d=6.5, h=8.5);
  8. up(8.5) xrot(15) cylinder(d=2.5, h=10);
  9. }
  10. switch();
  11. module screw_joiner(size, screw_diam=2.2, chamfer=1, edges=EDGES_Z_ALL) {
  12. difference() {
  13. cuboid(size, chamfer=chamfer, edges=edges);
  14. down(size.z/2) cylinder(d=screw_diam, h=size.z, $fn=12);
  15. }
  16. }
  17. left(20) screw_joiner([5, 5, 10]);