--- /dev/null
+// -*- C -*-
+
+patbox_side = 87;
+patbox_centres = 60.3;
+
+lid_box_overlap = 5;
+
+lid_thinbox_h = 9;
+lid_fatbox_h = 24;
+lid_fatbox_switches_h = 6+2;
+
+total_len = 260;
+thinbox_len = 87;
+
+lid_top_wall = 1.5;
+lid_front_wall = 1.5;
+
+// computed
+
+lid_inner_max_h = lid_box_overlap + lid_fatbox_h + lid_fatbox_switches_h;
+lid_inner_min_h = lid_box_overlap + lid_fatbox_switches_h;
+
+lid_inner_kink = [thinbox_len, thinbox_len*2];
+
+module LidSideProfile(){
+ polygon([[-lid_top_wall, lid_inner_max_h],
+ [lid_inner_kink[0], lid_inner_max_h],
+ [lid_inner_kink[1], lid_inner_min_h],
+ [total_len, lid_inner_min_h],
+ [total_len, -lid_front_wall],
+ [-lid_top_wall, -lid_front_wall]]);
+}
+
+LidSideProfile();