chiark / gitweb /
ksafe-base: dcover wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 31 Oct 2018 02:29:42 +0000 (02:29 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 31 Oct 2018 02:29:42 +0000 (02:29 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
ksafe-base.scad

index a291a52..2e2a18a 100644 (file)
@@ -63,7 +63,7 @@ yw12 = yw11 + wall_thick;
 yw13 = -yw6;
 
 cpp1 = dpp1 + [  dcover_slop_depth, dcover_slop_height ];
-cpp2 = dpp2 + [ -dcover_slop_depth, dcover_slop_height ];
+cpp2 = [ dpp2[0] - dcover_slop_depth, dpp3[1] + dcover_slop_height ];
 cppH = cpp1 + [ 0, dcover_endthick ];
 cppA = [ cpp2[0], dpp3[1] + dcover_slop_inside ];
 cppK = cppA + [ 0, dcover_mainthick ];
@@ -280,6 +280,14 @@ module DCover(){ ////toplevel
     DCoverProfile();
 }
 
+module DCoverSupportAllowance(){
+  translate([0, -hsz, 0])
+    cube(center=true,
+        [ display_width + 2 * dcover_edge_gap_more_width,
+          wall_thick * 2,
+          dcover_slop_inside * 2 + 0.01 ]);
+}
+
 module KsafeBase(){ ////toplevel
   cut = main_sz + 20;
 
@@ -311,12 +319,7 @@ module KsafeBase(){ ////toplevel
               thumbslot_depth+1 ]);
     }
 
-    // support frass area by display cover
-    translate([0, -hsz, 0])
-      cube(center=true,
-          [ display_width + 2 * dcover_edge_gap_more_width,
-            wall_thick * 2,
-            dcover_slop_inside * 2 + 0.01 ]);
+    DCoverSupportAllowance();
   }
 }
 
@@ -337,6 +340,18 @@ module RimTest(){ ////toplevel
   }
 }
 
+module DCoverTest(){ ////toplevel
+  intersection(){
+    union(){
+      Box();
+      DCover();
+    }
+    translate([0,0,60])
+    cube(center=true, [ main_sz*2, main_sz*2,
+                       2 * (60 + 3.0) ]);
+  }
+}
+
 module BoltTest(){ ////toplevel
   dy = 0.5 * (bolthole_width+4);
   intersection(){