openSCAD models for 3d-printing
openscad
3d-printing

kitchen_cupboard_clip.scad 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // configuration values
  2. l = 27; // distance between ground and inner clip
  3. h = 7; // height of clip
  4. t = 5; // thickness of clip
  5. w = 90; // width of ground plate
  6. fs = 8; // font size
  7. // internal variables, not change these
  8. in = 35 / 2;
  9. out = in + t;
  10. d = l + in;
  11. content = "TM";
  12. font = "Droid Sans Mono Bold";
  13. difference() {
  14. union() {
  15. difference() {
  16. difference() {
  17. cylinder(r1=out, r2=out, h=h, $fn=50);
  18. cylinder(r1=in, r2=in, h=h, $fn=50);
  19. }
  20. translate([0,33,0]) cylinder(r1=25, r2=25, h=h);
  21. }
  22. translate([-w/2,-d,0]) {
  23. cube(size = [w,7,h+5]);
  24. }
  25. difference() {
  26. translate([-fs,-d+7,0]) cube(size=[fs*2,d-7-in+2,h]);
  27. translate([0,1,0]) cylinder(r=out, h=h);
  28. }
  29. rotate([0,0,90]) {
  30. translate ([-d+9,-fs/2,h]) {
  31. linear_extrude(height=1.5) {
  32. text(content, font=font, size=fs);
  33. }
  34. }
  35. }
  36. }
  37. translate([-(w/2-6),-d+7,(h+5)/2]) rotate([90]) cylinder(h=3, r1=3.5, r2=0, $fn=20);
  38. translate([w/2-6,-d+7,(h+5)/2]) rotate([90]) cylinder(h=3, r1=3.5, r2=0, $fn=20);
  39. }