chiark / gitweb /
pattress-boxes-3-cover: LidSide, wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 25 Dec 2015 17:46:52 +0000 (17:46 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 25 Dec 2015 17:46:52 +0000 (17:46 +0000)
pattress-boxes-3-cover.scad

index b30268b2cc8ab1f4f284547e9e0ca4f0c7eaedf6..4199dbc21f7e4f92f161915f692ef7ee37fc49d3 100644 (file)
@@ -9,6 +9,9 @@ lid_thinbox_h = 9;
 lid_fatbox_h = 24;
 lid_fatbox_switches_h = 6+2;
 
+lid_max_switches_w = 70;
+lid_switches_y_slop = 3;
+
 total_len = 260;
 thinbox_len = 87;
 
@@ -23,6 +26,12 @@ lid_inner_min_h = lid_box_overlap + lid_fatbox_switches_h;
 
 lid_inner_kink = [thinbox_len, thinbox_len*2];
 
+lid_rail_w = (patbox_side - lid_max_switches_w)/2 - lid_switches_y_slop;
+
+lid_rail_h = lid_fatbox_switches_h;
+
+echo(lid_rail_w);
+
 module LidSideProfile(){
   polygon([[-lid_top_wall,     lid_inner_max_h],
           [lid_inner_kink[0], lid_inner_max_h],
@@ -33,9 +42,17 @@ module LidSideProfile(){
 }
 
 module LidSide(){
+  overlap = [0.1, 0.1, 0.1];
+
   rotate([90,0,0])
-  linear_extrude(height= lid_side_wall)
+    linear_extrude(height= lid_side_wall)
     LidSideProfile();
+
+  translate(-overlap)
+    cube(overlap + [total_len, lid_rail_w, lid_rail_h]);
+
+  translate([-0.1, -0.1, -lid_front_wall])
+    cube([total_len+0.1, patbox_side/2 + 0.2, lid_front_wall]);
 }
 
 LidSide();