chiark / gitweb /
pattress-boxes-3-cover: LidSideProfile, wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 25 Dec 2015 17:33:18 +0000 (17:33 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 25 Dec 2015 17:33:18 +0000 (17:33 +0000)
pattress-boxes-3-cover.scad [new file with mode: 0644]

diff --git a/pattress-boxes-3-cover.scad b/pattress-boxes-3-cover.scad
new file mode 100644 (file)
index 0000000..1ddf999
--- /dev/null
@@ -0,0 +1,34 @@
+// -*- 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();