borletti.scad 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* [OpenScad] */
  2. $fn=90;
  3. /* [Teil] */
  4. Teil = 1; // [1:1:4]
  5. /* [Borletti] */
  6. // Bohrungen erstellen
  7. Bohrungen = true;
  8. // Anzahl Mitnehmerbohrungen
  9. Mitnehmer = 5; // [1:1:8]
  10. // Verschiebung x
  11. Shift_x = 0.0; // [-2:0.1:2]
  12. // Verschiebung y
  13. Shift_y = 0.0; // [-2:0.1:2]
  14. // Dicke der Scheibe
  15. Dicke = 3.5;
  16. /* [Hidden] */
  17. Delta=0.005;
  18. Zusatz = 0.75;
  19. Aufnahme = 21.5;
  20. module borletti(filename) {
  21. difference() {
  22. translate([Shift_x,Shift_y,0]) linear_extrude(height=Dicke+Zusatz) import(file=filename, center=true);
  23. if (Bohrungen) translate([0,0,-Delta]) union() {
  24. cylinder(d=Aufnahme, h=2*Dicke);
  25. cylinder(d=Aufnahme+2, h=Zusatz);
  26. // Quatsch: !!!
  27. for(winkel=[0:360/Mitnehmer:359]) {
  28. rotate([0,0,winkel]) translate([30.5/2,0,0]) union() {
  29. hull() {
  30. translate([+0.5,0,0]) cylinder(d=3.5, h=2*Dicke);
  31. translate([-0.5,0,0]) cylinder(d=3.5, h=2*Dicke);
  32. }
  33. hull() {
  34. translate([+0.5,0,0]) cylinder(d=4, h=Zusatz);
  35. translate([-0.5,0,0]) cylinder(d=4, h=Zusatz);
  36. }
  37. }
  38. }
  39. }
  40. }
  41. }
  42. //ranslate([+25,0,0]) borletti("Borletti-3ZickZack.svg");
  43. //translate([-25,0,0]) borletti("Borletti-Overlock-3L1R.svg");
  44. //translate([0,40,0])
  45. //borletti("Borletti-4ZickZack-2.svg");
  46. if (Teil==1) {
  47. translate([-25,0,0]) linear_extrude(height=Dicke) import(file="borletti-3-zickzack.svg", center=true);
  48. translate([+25,0,0]) linear_extrude(height=Dicke) import(file="borletti-4-zickzack.svg", center=true);
  49. }
  50. if (Teil==2) {
  51. translate([+25,0,0]) linear_extrude(height=Dicke) import(file="borletti-2-zickzack.svg", center=true);
  52. translate([-25,0,0]) linear_extrude(height=Dicke) import(file="borletti-overlock.svg", center=true);
  53. }
  54. if (Teil==4) {
  55. //translate([+25,0,0]) linear_extrude(height=Dicke) import(file="borletti-lycrastich.svg", center=true);
  56. //translate([-25,0,0])
  57. linear_extrude(height=Dicke) import(file="kontrolle-blindstich.svg", center=true);
  58. }
  59. // die waren kaputt - nochmal:
  60. if (Teil==3) {
  61. translate([+25,0,0]) linear_extrude(height=Dicke) import(file="borletti-lycrastich.svg", center=true);
  62. translate([-25,0,0]) linear_extrude(height=Dicke) import(file="borletti-universal.svg", center=true);
  63. }