borletti.scad 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* [OpenScad] */
  2. $fn=90;
  3. /* [Teil] */
  4. Teil = 4; // [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. /* [Hidden] */
  15. Delta=0.005;
  16. Dicke = 3.5;
  17. Zusatz = 0.75;
  18. Aufnahme = 21.5;
  19. module borletti(filename) {
  20. difference() {
  21. translate([Shift_x,Shift_y,0]) linear_extrude(height=Dicke+Zusatz) import(file=filename, center=true);
  22. if (Bohrungen) translate([0,0,-Delta]) union() {
  23. cylinder(d=Aufnahme, h=2*Dicke);
  24. cylinder(d=Aufnahme+2, h=Zusatz);
  25. for(winkel=[0:360/Mitnehmer:359]) {
  26. rotate([0,0,winkel]) translate([30.5/2,0,0]) union() {
  27. hull() {
  28. translate([+0.5,0,0]) cylinder(d=3.5, h=2*Dicke);
  29. translate([-0.5,0,0]) cylinder(d=3.5, h=2*Dicke);
  30. }
  31. hull() {
  32. translate([+0.5,0,0]) cylinder(d=4, h=Zusatz);
  33. translate([-0.5,0,0]) cylinder(d=4, h=Zusatz);
  34. }
  35. }
  36. }
  37. }
  38. }
  39. }
  40. //ranslate([+25,0,0]) borletti("Borletti-3ZickZack.svg");
  41. //translate([-25,0,0]) borletti("Borletti-Overlock-3L1R.svg");
  42. //translate([0,40,0])
  43. //borletti("Borletti-4ZickZack-2.svg");
  44. if (Teil==1) {
  45. translate([+25,0,0]) linear_extrude(height=Dicke) import(file="borletti-2-zickzack.svg", center=true);
  46. translate([-25,0,0]) linear_extrude(height=Dicke) import(file="borletti-3-zickzack.svg", center=true);
  47. }
  48. if (Teil==2) {
  49. translate([+25,0,0]) linear_extrude(height=Dicke) import(file="borletti-4-zickzack.svg", center=true);
  50. translate([-25,0,0]) linear_extrude(height=Dicke) import(file="borletti-lycrastich.svg", center=true);
  51. }
  52. if (Teil==3) {
  53. translate([+25,0,0]) linear_extrude(height=Dicke) import(file="borletti-overlock.svg", center=true);
  54. translate([-25,0,0]) linear_extrude(height=Dicke) import(file="borletti-universal.svg", center=true);
  55. }
  56. if (Teil==4) {
  57. //translate([+25,0,0])
  58. difference(){
  59. linear_extrude(height=Dicke) import(file="borletti-vrv.svg", id="disc", center=true);
  60. translate([0,0,Dicke-0.5]) linear_extrude(height=0.6) import(file="borletti-vrv.svg", id="notes", center=true);
  61. }
  62. }