chiark / gitweb /
pattress-boxes-3-cover: TopPattressBox, wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 25 Dec 2015 18:15:52 +0000 (18:15 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 25 Dec 2015 18:15:52 +0000 (18:15 +0000)
pattress-boxes-3-cover.scad

index d3f5b12..2799a3e 100644 (file)
@@ -21,7 +21,7 @@ lid_front_wall = 1.5;
 lid_side_wall = 1.5;
 
 peg_engage_depth = 1;
-peg_engage_dia = 6.0;
+peg_engage_dia = 6.5;
 peg_main_dia = 9;
 peg_max_dia = 15;
 peg_inner_dia = 3.5;
@@ -102,6 +102,26 @@ module Peg(){
     PegProfile();
 }
 
+module AtFixingCentres(){
+  for (fc=[-1,+1]) {
+    translate([patbox_side/2 + fc*patbox_centres/2,
+              patbox_side/2,
+              0])
+      children();
+  }
+}
+
+module TopPattressBox(){
+  difference(){
+    translate([0,0, -lid_thinbox_h])
+      cube([patbox_side, patbox_side, lid_thinbox_h]);
+    AtFixingCentres(){
+      translate([0,0,-10]) cylinder(r=peg_engage_dia/2, h=20);
+    }
+  }
+}
+
 //LidSide();
 //PegProfile();
-Peg();
+//Peg();
+TopPattressBox();