chiark / gitweb /
pattress-boxes-3-cover: LidSide, wip
[reprap-play.git] / pattress-boxes-3-cover.scad
index 1ddf9997025ff025945efa0e35278e6317b3d8cb..4199dbc21f7e4f92f161915f692ef7ee37fc49d3 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C -*-
 
-patbox_side = 87;
+patbox_side = 87 + 0.5;
 patbox_centres = 60.3;
 
 lid_box_overlap = 5;
@@ -9,11 +9,15 @@ 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;
 
 lid_top_wall = 1.5;
 lid_front_wall = 1.5;
+lid_side_wall = 1.5;
 
 // computed
 
@@ -22,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],
@@ -31,4 +41,18 @@ module LidSideProfile(){
           [-lid_top_wall,     -lid_front_wall]]);
 }
 
-LidSideProfile();
+module LidSide(){
+  overlap = [0.1, 0.1, 0.1];
+
+  rotate([90,0,0])
+    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();