From f05d5e69613cb6ad13f363f6a0da472245cd92b3 Mon Sep 17 00:00:00 2001
From: Manuel Schmidt <schmid49@pad.ptb.de>
Date: Mon, 26 Jul 2021 17:14:17 +0200
Subject: [PATCH] Rahmen an Seitenteile des Pi-Cases angebracht

---
 Gehauese.scad | 46 +++++++++++++++++++++++++++++++++++-----------
 1 file changed, 35 insertions(+), 11 deletions(-)

diff --git a/Gehauese.scad b/Gehauese.scad
index 0c4c32a..3c3fd6d 100644
--- a/Gehauese.scad
+++ b/Gehauese.scad
@@ -164,20 +164,44 @@ module case_right_side(x, y, z, visibility) {
 }
 
 module case_back_side(x, y, z, visibility) {
-    translate([x, y, z]) color([0.4, 0.4, 0.4], visibility) cube([95, 2, 28.5]);
+    union() {
+        translate([x, y, z]) color([0.4, 0.4, 0.4],         visibility) cube([95, 2, 28.5]);
+        
+                // Rahmen
+        difference() {
+            union() {
+                translate([x, y+2, z+22.5]) color([0.4,             0.4, 0.4], visibility) cube([95, 3, 10              ]);
+                translate([x, y, z+30.5]) color([0.4,             0.4, 0.4], visibility) cube([95, 5, 2]);
+            }
+            translate([x-0.2, y+3, z+20]) rotate([45,         0, 0]) cube([97, 10, 3]);
+            translate([x-0.2, y, z+30.5]) rotate([45,         0, 0]) cube([97, 3, 10]);
+        }  
+        
+    }
 }
 
 module case_front_side(x, y, z, visibility) {
-    difference() {
-        translate([x, y, z]) color([0.4, 0.4, 0.4], visibility) cube([95, 2, 28.5]);
-        // Aux-hole
-        translate([x+61, y-0.2, z+10])  rotate([0, 90, 90]) cylinder(5, 4, 4,$fn=50, true);
-        // HDMI-hole1
-        translate([x+28.7, y-0.2, z+6]) cube([8.5, 4, 4]);
-        // HDMI-hole2
-        translate([x+42.2, y-0.2, z+6]) cube([8.5, 4, 4]);
-        // USB-C-hole
-        translate([x+13, y-0.2, z+6]) cube([10.5, 4, 4]);
+    union() {
+        difference() {
+            translate([x, y, z]) color([0.4, 0.4, 0.4],         visibility) cube([95, 2, 28.5]);
+            // Aux-hole
+            translate([x+61, y-0.2, z+10])  rotate([0,          90, 90]) cylinder(5, 4, 4,$fn=50, true);
+            // HDMI-hole1
+            translate([x+28.7, y-0.2, z+6]) cube([8.5, 4        , 4]);
+            // HDMI-hole2
+            translate([x+42.2, y-0.2, z+6]) cube([8.5, 4        , 4]);
+            // USB-C-hole
+            translate([x+13, y-0.2, z+6]) cube([10.5, 4,        4]);
+        }
+        // Rahmen
+        difference() {
+            union() {
+                translate([x, y-3, z+22.5]) color([0.4,             0.4, 0.4], visibility) cube([95, 3, 10              ]);
+                translate([x, y-3, z+30.5]) color([0.4,             0.4, 0.4], visibility) cube([95, 5, 2]);
+            }
+            translate([x-0.2, y-1.5, z+20]) rotate([45,         0, 0]) cube([97, 3, 10]);
+            translate([x-0.2, y+2, z+30.5]) rotate([45,         0, 0]) cube([97, 3, 10]);
+        }  
     }
 }
 
-- 
GitLab