From 17c5e8ed786b6a8b030f4cefac556067950c5c2a Mon Sep 17 00:00:00 2001 From: Deon Spengler Date: Wed, 21 Jun 2023 00:56:58 +0200 Subject: [PATCH] Start of hinge designe --- cad/display.scad | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/cad/display.scad b/cad/display.scad index b9a3bde..70df92e 100644 --- a/cad/display.scad +++ b/cad/display.scad @@ -1,5 +1,4 @@ $fn=32*2; - thickness=1.6; width=208.5; depth=70.5; @@ -24,16 +23,21 @@ translate([thickness, thickness, 1.5]){ } } -// usb floor +// usb compartment usb_compartment(); -// battery floor +// battery compartment translate([146.6, 0, 0]) battery_compartment(); // raspberry pi 4 cover rpi4_cover(); +// hinge test +translate([100, -80, 0]){ + male_hinge(); +} + module usb_compartment(){ usb_tray_width=31; usb_tray_height=4; @@ -138,3 +142,13 @@ module right_slope(w, d, h){ points=[[0,d,0], [0,0,0], [w,0,0], [w,d,0], [0,d,h], [0,0,h]], faces=[[0,1,2,3],[5,4,3,2],[0,4,5,1],[0,3,4],[5,2,1]]); } + +module male_hinge(){ + translate([0, 0, -10+th/2]) + cube([l, w, th], center=true); + //generating 2 tabs with sp spacing + translate([0, -sp, 0]) + tab(); + translate([0, sp, 0]) + tab(); +} \ No newline at end of file