diff --git a/Gehauese.scad b/Gehauese.scad index 52b8ed51441836cfc031c8c0bd491ddd18bc44ae..84250c86b2f59fd1f8df43bcb8f36eda354f652e 100644 --- a/Gehauese.scad +++ b/Gehauese.scad @@ -75,16 +75,26 @@ module raspberryPi(off_x, off_y, off_z) { } +module screwcylinder(x, y, z, visibility) { + echo("Schraubzylinder erstellen"); + difference(){ + translate([x, y, z]) color([0.4, 0.4, 0.4], visibility) rotate([0, 0, 0]) cylinder(5, 3, 3, $fn=50, true); + translate([x, y, z]) rotate([0, 0, 0]) cylinder(6, 1.5, 1.5, $fn=50, true); + } +} + + module case(visibility){ difference() { union(){ // Groundplate translate([0, 0, 0]) color([0.4, 0.4, 0.4], visibility) cube([95, 62, 2]); // Screwcylinders - translate([10.5, 6, 3]) color([0.4, 0.4, 0.4], visibility) rotate([0, 0, 0]) cylinder(5, 3, 3, $fn =50, true); - translate([68.5, 6, 3]) color([0.4, 0.4, 0.4], visibility) rotate([0, 0, 0]) cylinder(5, 3, 3, $fn =50, true); - translate([68.5, 55, 3]) color([0.4, 0.4, 0.4], visibility) rotate([0, 0, 0]) cylinder(5, 3, 3, $fn =50, true); - translate([10.5, 55, 3]) color([0.4, 0.4, 0.4], visibility) rotate([0, 0, 0]) cylinder(5, 3, 3, $fn =50, true); + screwcylinder(10.5, 6, 3, visibility); + + screwcylinder(68.5, 6, 3, 1); + screwcylinder(68.5, 55, 3, 1); + screwcylinder(10.5, 55, 3, 1); // Side front translate([0, 0, 2]) color([0.4, 0.4, 0.4], visibility) cube([95, 2, 40]); @@ -116,8 +126,8 @@ module case(visibility){ } } + + -raspberryPi(7, 2.5, 5); +//raspberryPi(7, 2.5, 5); case(0.9); -//translate([20, 0, 10]) rotate([0, 90, 90]) cylinder([20, 3.6, 3.6], $fn=50, true); -