--- /dev/null
+// -*- C -*-
+
+include <utils.scad>
+
+//tongue_w = 11.92 + 0.4;
+
+usb_w = 12.01 - 0.3;
+usb_wall_w = 0.75 - 0.1;
+usb_tongue_d = 8.97 - 0.2;
+usb_wall_h = 4.54 - 2.04;
+usb_ceil_th = 0.125;
+
+side_wall_th = 1.5;
+
+board_l = 13.56 + 0.2;
+board_w = 19.14 + 0.2;
+
+module TopSmallWallsPlan() {
+ for (m=[0,1]) {
+ mirror([m,0]) {
+ rectfromto([ -usb_w/2, -0.01 ],
+ [ -usb_w/2 + usb_wall_w, usb_tongue_d ]);
+ }
+ }
+}
+module BothSides(){
+ for (m=[0,1]) {
+ mirror([m,0]) {
+ children();
+ }
+ }
+}
+module TopCeilPlan() {
+ BothSides(){
+ rectfromto([ -usb_w/2, -0.01 ],
+ [ 0.1, usb_tongue_d ]);
+ rectfromto([ -board_w/2 - side_wall_th, 0 ],
+ [ 0.1, -board_l ]);
+ }
+}
+module TopMainWallsPlan() {
+
+}
+
+module Top(){
+ linextr(0, usb_wall_h)
+ TopSmallWallsPlan();
+ linextr(usb_wall_h - usb_ceil_th, usb_wall_h)
+ TopCeilPlan();
+}
+
+Top();