chiark / gitweb /
knifeblock: wip block
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 30 Dec 2014 22:03:18 +0000 (22:03 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 30 Dec 2014 22:03:18 +0000 (22:03 +0000)
knifeblock.scad

index 7747518ad379d1e20bb0e832109e007dd7bb7962..76001c75acc56696c318b454d38c6bf569fe317b 100644 (file)
@@ -1,16 +1,22 @@
 // -*- C -*-
 
 // -*- C -*-
 
+// properties of the knives
 nknives = 3;
 nknives = 3;
-
 widths = [15.5, 15.8, 19.0];
 widths = [15.5, 15.8, 19.0];
-
 handlelenbase = 60;
 handlelendelta = [-10, 0, 0];
 handlelenbase = 60;
 handlelendelta = [-10, 0, 0];
-
 locations = [-35, 0, 40];
 locations = [-35, 0, 40];
-
 bladew = 5; // 2.5
 bladew = 5; // 2.5
+maxhandledepth = 43.5;
+
+// other tuneables
+side = 5;
+front = 5;
+back = 5;
+height = 50;
 
 
+// computed
+totaldepth = front + maxhandledepth + back;
 
 module ImportTemplate(w,k,t) {
   fn = str("knifeblock-knives-t",k,t,".dxf");
 
 module ImportTemplate(w,k,t) {
   fn = str("knifeblock-knives-t",k,t,".dxf");
@@ -42,4 +48,19 @@ module DoKnives(){
     DoKnife(k);
 }
 
     DoKnife(k);
 }
 
-DoKnives();
+module Block(){
+  minkx = locations[0] -         widths[0]        /2;
+  maxkx = locations[nknives-1] + widths[nknives-1]/2;
+
+  minx = minkx - side;
+  maxx = maxkx + side;
+
+  difference(){
+    translate([minx, -front, 0])
+      mirror([0,0,1])
+      cube([maxx-minx, totaldepth, height]);
+    #DoKnives();
+  }
+}
+
+Block();