chiark / gitweb /
sleepphone-cable-box: wip, keeper, etc.
[reprap-play.git] / cable-hole-trunking-cover.scad
index d599e82..ed2bc31 100644 (file)
@@ -1,28 +1,27 @@
 // -*- C -*-
 
-holedia = 25.4;
+holedia = 25;
+tapethick = 1.5;
+cutoutsz= 15;
+innerz = 11;
 
-sidewidth = 5;
-tapewidth = 7;
-tapethick = 1;
+sidesflatbase = 2;
+endsflatbase = 8;
 
-cutoutsz= 10;
+basex = holedia + endsflatbase*2;
+basey = holedia + sidesflatbase*2;
 
-innerz = 10;
-
-basex = holedia + sidewidth*2;
-basey = holedia + tapewidth*2;
-
-bevelz = 3;
+bevely = 2.75;
 bevelslope = 0.75;
-bevely = bevelz * bevelslope;
+bevelz = bevely / bevelslope;;
+basebevelt = 3;
 
 sideslop = 0.5;
 
 basebaset = 2;
-sidewallt = 3;
+sidewallt = 2;
 
-lidt = 2;
+lidt = 1.3;
 endwallt = 2;
 zslop = 0.75;
 endslop = 0.75;
@@ -40,8 +39,8 @@ module Base(cutouty){
   difference(){
     union(){
       for (mir=[0,1]) mirror([0,mir,0]) {
-       translate([0, basey/2 - sidewallt, 0])
-         sheared_cube([basex, sidewallt, bevelz], 0, bevelslope);
+       translate([0, basey/2 - basebevelt, 0])
+         sheared_cube([basex, basebevelt, bevelz], 0, bevelslope);
        cube([basex, basey/2, basebaset]);
       }
     }
@@ -102,7 +101,19 @@ module BaseCBot(){ ////toplevel
   Base(-(basey/2 + bevely - cutoutsz/2));
 }
 
+module BaseCNone(){ ////toplevel
+  Base(basey);
+}
+
+module Demo(){ ////toplevel
+  BaseCTop();
+  %Lid();
+}
+
 //BaseCTop();
 //BaseCMid();
 //BaseCBot();
+//BaseCNone();
+//Lid();
 //LidT();
+//Demo();