chiark / gitweb /
knifeblock: CoverParts
[reprap-play.git] / knifeblock.scad
index e708c647e95372e3bafa67aa3fb2542e6192005c..d083156a76ec722fcf3b5fb992e8898417dd92f0 100644 (file)
@@ -49,7 +49,7 @@ pegsloph = 0.5;
 pegslopv = 0.5;
 pegslopl = 0.5;
 
-pegdepthproportion = 0.67;
+pegdepthproportion = 0.80;
 
 // computed
 side = minsidein + screwcsinkdia + minsideout;
@@ -118,6 +118,14 @@ module AtSides(){
   translate([maxx,0,0]) mirror([1,0,0]) child(1);
 }
 
+module BlockPegSlot(){
+  translate([recessblockwidth/2, pegrecess - 0.5*peglen, -height]){
+    rotate([-90,0,0]) linear_extrude(height=totaldepth){
+      PegTemplate();
+    }
+  }
+}
+
 module Block(){
   sidemidx = minsideout + screwcsinkdia/2;
 
@@ -136,6 +144,7 @@ module Block(){
     for (yshift=[-1,1])
       translate([0, yshift * frontbackslop, 0])
        DoKnives();
+    AtSides() { BlockPegSlot(); BlockPegSlot(); }
   }
 }
 
@@ -210,10 +219,24 @@ module CoverAligned(){
     Cover();
 }
 
+module DemoPeg(){
+  translate([recessblockwidth/2, pegrecess, -height])
+    Peg();
+}
+
 module Demo(){ ////toplevel
   %Block();
   DoKnives();
   color([0,0,1]) CoverAligned();
+  color([1,0,0]) AtSides() { DemoPeg(); DemoPeg(); }
+}
+
+module CoverParts(){ ////toplevel
+  Cover();
+  translate([0, coverlonglen, pegheight/2]) {
+    Peg();
+    translate([-peghead-3, 0,0]) Peg();
+  }
 }
 
 Demo();