chiark / gitweb /
knifeblock: toplevels
[reprap-play.git] / knifeblock.scad
index 8f71dd74b8ada7040f4fc365fa4f6eb8d813e424..302dacb73739d6cc1ee2ff1099c1a400163843d2 100644 (file)
@@ -3,20 +3,22 @@
 // properties of the knives
 nknives = 3;
 widths = [15.5, 15.8, 19.0];
-handlelenbase = 60;
-handlelendelta = [-10, 0, 0];
+handlelenbase = 75;
+handlelendelta = [-15, 0, 10];
 locations = [-35, 0, 40];
 bladew = 5; // 2.5
-maxhandledepth = 43.5 - 5;
+maxhandledepth = 45;
+
+templatescale = 27.2 / 19.6;
 
 // other tuneables
 front = 5;
-back = 8;
+back = 5;
 height = 50;
-minsidein = 3;
-minsideout = 3;
+minsidein = 4;
+minsideout = 4;
 
-frontbackslop = 0.5;
+frontbackslop = 0.25;
 
 screwbackdepth = 6.0 - 1.0;
 screwdia =       4.0 + 0.5;
@@ -33,7 +35,7 @@ module ImportTemplate(w,k,t) {
   echo(fn);
   translate([0,0, -w/2])
     linear_extrude(height=w)
-    import(file=fn, convexity=100);
+    scale(templatescale) import(file=fn, convexity=100);
 }
 
 module Knife(k){
@@ -54,12 +56,8 @@ module DoKnife(k){
 }
 
 module DoKnives(){
-  for (yshift=[-1,1]) {
-    translate([0, yshift * frontbackslop, 0])
-      for (k=[0:nknives-1]) {
-       DoKnife(k);
-      }
-  }
+  for (k=[0:nknives-1])
+    DoKnife(k);
 }
 
 module ScrewHole(){
@@ -68,7 +66,7 @@ module ScrewHole(){
     cylinder(r=screwdia/2, h=150, $fn=40);
   translate([0, totaldepth-front - screwbackdepth, 0])
     rotate([90,0,0])
-    cylinder(r=screwcsinkdia/2, h=100, $fn=40);
+    cylinder(r=screwcsinkdia/2 / (sqrt(3)/2), h=100, $fn=6);
 }
 
 module Block(){
@@ -92,8 +90,20 @@ module Block(){
       translate([x, 0, -screwabove])
        ScrewHole();
     }
-    DoKnives();
+    for (yshift=[-1,1])
+      translate([0, yshift * frontbackslop, 0])
+       DoKnives();
   }
 }
 
-Block();
+module BlockPrint(){ ////toplevel
+  rotate([0,0,90])
+    Block();
+}
+
+module Demo(){ ////toplevel
+  Block();
+  %DoKnives();
+}
+
+Demo();