// -*- C -*-
-patbox_side = 87;
+patbox_side = 87 + 0.5;
patbox_centres = 60.3;
lid_box_overlap = 5;
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
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],
[-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();