Geen omschrijving
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.

usbc.scad 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Copyright (c) 2022 - 2023 Thomas Buck (thomas@xythobuz.de)
  3. * Philipp Schönberger (mail@phschoen.de)
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * See <http://www.gnu.org/licenses/>.
  16. */
  17. module usb_c()
  18. {
  19. // todo
  20. color("gray")
  21. translate([-19.8/2,0,0])
  22. cube([19.8,1.6,6.6]);
  23. translate([-9.2/2,0.01,1.6])
  24. cube([9.2,14.5,3.3]);
  25. translate([-12.6/2,0.01,1.6])
  26. cube([12.6,3.5,3.3]);
  27. for(i=[-1,1])
  28. translate([i*15.75/2,0,6.6/2])
  29. rotate([-90,0,0])
  30. cylinder($fn=32,d=1.8,h=1.6+5);
  31. }
  32. module usb_c_cutout()
  33. {
  34. // todo
  35. color("gray")
  36. translate([-19.8/2,-20,0])
  37. cube([19.8,1.6+20,6.6]);
  38. translate([-9.2/2,0.01,1.6])
  39. cube([9.2,14.5,3.3]);
  40. translate([-12.6/2,0.01,1.6])
  41. cube([12.6,3.5,3.3]);
  42. for(i=[-1,1])
  43. translate([i*15.75/2,0,6.6/2])
  44. rotate([-90,0,0])
  45. cylinder($fn=32,d=1.8,h=1.6+5);
  46. }