| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- /* [OpenScad] */
- $fn=90;
- /* [Teil] */
- Teil = 1; // [1:1:4]
- /* [Borletti] */
- // Bohrungen erstellen
- Bohrungen = true;
- // Anzahl Mitnehmerbohrungen
- Mitnehmer = 5; // [1:1:8]
- // Verschiebung x
- Shift_x = 0.0; // [-2:0.1:2]
- // Verschiebung y
- Shift_y = 0.0; // [-2:0.1:2]
- // Dicke der Scheibe
- Dicke = 3.5;
- /* [Hidden] */
- Delta=0.005;
- Zusatz = 0.75;
- Aufnahme = 21.5;
- module borletti(filename) {
- difference() {
- translate([Shift_x,Shift_y,0]) linear_extrude(height=Dicke+Zusatz) import(file=filename, center=true);
- if (Bohrungen) translate([0,0,-Delta]) union() {
- cylinder(d=Aufnahme, h=2*Dicke);
- cylinder(d=Aufnahme+2, h=Zusatz);
- // Quatsch: !!!
- for(winkel=[0:360/Mitnehmer:359]) {
- rotate([0,0,winkel]) translate([30.5/2,0,0]) union() {
- hull() {
- translate([+0.5,0,0]) cylinder(d=3.5, h=2*Dicke);
- translate([-0.5,0,0]) cylinder(d=3.5, h=2*Dicke);
- }
- hull() {
- translate([+0.5,0,0]) cylinder(d=4, h=Zusatz);
- translate([-0.5,0,0]) cylinder(d=4, h=Zusatz);
- }
- }
- }
- }
- }
- }
- //ranslate([+25,0,0]) borletti("Borletti-3ZickZack.svg");
- //translate([-25,0,0]) borletti("Borletti-Overlock-3L1R.svg");
- //translate([0,40,0])
- //borletti("Borletti-4ZickZack-2.svg");
- if (Teil==1) {
- translate([-25,0,0]) linear_extrude(height=Dicke) import(file="borletti-3-zickzack.svg", center=true);
- translate([+25,0,0]) linear_extrude(height=Dicke) import(file="borletti-4-zickzack.svg", center=true);
- }
- if (Teil==2) {
- translate([+25,0,0]) linear_extrude(height=Dicke) import(file="borletti-2-zickzack.svg", center=true);
- translate([-25,0,0]) linear_extrude(height=Dicke) import(file="borletti-overlock.svg", center=true);
- }
- if (Teil==4) {
- //translate([+25,0,0]) linear_extrude(height=Dicke) import(file="borletti-lycrastich.svg", center=true);
- //translate([-25,0,0])
- linear_extrude(height=Dicke) import(file="kontrolle-blindstich.svg", center=true);
- }
- // die waren kaputt - nochmal:
- if (Teil==3) {
- translate([+25,0,0]) linear_extrude(height=Dicke) import(file="borletti-lycrastich.svg", center=true);
- translate([-25,0,0]) linear_extrude(height=Dicke) import(file="borletti-universal.svg", center=true);
- }
|