// 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;
+
+coverlonglen = 120; // xxx
+covershortlen = 70; // xxx
// other tuneables
front = 5;
-back = 8;
+back = 5;
height = 50;
minsidein = 4;
minsideout = 4;
-frontbackslop = 0.5;
+frontbackslop = 0.25;
screwbackdepth = 6.0 - 1.0;
screwdia = 4.0 + 0.5;
screwabove = 15;
+coverthick = 2.4;
+coverside = coverthick;
+
+covertopwing = 15;
+covertopwingbase = 20;
+coveredge = 3;
+
+pegstem = 3.5;
+peghead = 10;
+pegstemheight = 2;
+pegheight = 9;
+peglen = 12;
+
+pegslop = 0.5;
+
// computed
side = minsidein + screwcsinkdia + minsideout;
totaldepth = front + maxhandledepth + back;
+minkx = locations[0] - widths[0] /2;
+maxkx = locations[nknives-1] + widths[nknives-1]/2;
+
+minx = minkx - side;
+maxx = maxkx + side;
+
module ImportTemplate(w,k,t) {
fn = str("knifeblock-knives-t",k,t,".dxf");
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){
}
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(){
}
module Block(){
- minkx = locations[0] - widths[0] /2;
- maxkx = locations[nknives-1] + widths[nknives-1]/2;
-
- minx = minkx - side;
- maxx = maxkx + side;
-
sidemidx = minsideout + screwcsinkdia/2;
difference(){
translate([x, 0, -screwabove])
ScrewHole();
}
- DoKnives();
+ for (yshift=[-1,1])
+ translate([0, yshift * frontbackslop, 0])
+ DoKnives();
+ }
+}
+
+module BlockPrint(){ ////toplevel
+ rotate([0,0,90])
+ Block();
+}
+
+module CoverTemplate(){
+ linear_extrude(height=coverthick)
+ polygon([[minx, 0],
+ [maxx, 0],
+ [maxx, coverlonglen],
+ [maxx - coverside, coverlonglen],
+ [minx, covershortlen]]);
+}
+
+module CoverSide(xpos, len){
+ translate([xpos, 0 ,0]) {
+ rotate([90,0,90])
+ linear_extrude(height=coverside)
+ polygon([[0, 0],
+ [0, totaldepth],
+ [covertopwing, totaldepth],
+ [covertopwingbase, coverside + coverthick],
+ [len - covertopwingbase, coverside + coverthick],
+ [len - covertopwing, totaldepth],
+ [len, totaldepth],
+ [len, 0]]);
+ }
+}
+
+module PegTemplate(){
+ for (mx=[0,1]) for (my=[0,1]) {
+ mirror([mx,0,0]) mirror([0,my,0])
+ polygon([[-0.1, -0.1],
+ [pegstem/2, -0.1],
+ [pegstem/2, pegstemheight/2],
+ [peghead/2, pegheight /2],
+ [-0.1, pegheight /2]]);
+ }
+}
+
+module Peg(){
+ echo("peg angle slope (must be <1)",
+ (peghead-pegstem)/(pegheight-pegstemheight));
+ d = pegslop;
+ rotate([90,0,0]) {
+ linear_extrude(height=peglen) {
+ intersection(){
+ translate([-d,-d,0]) PegTemplate();
+ translate([-d,+d,0]) PegTemplate();
+ translate([+d,+d,0]) PegTemplate();
+ translate([+d,-d,0]) PegTemplate();
+ }
+ }
}
}
-rotate([0,0,90])
- Block();
+module Cover(){
+ CoverTemplate();
+ CoverSide(minx, covershortlen);
+ mirror([1,0,0]) CoverSide(-maxx, coverlonglen);
+}
+
+module CoverAligned(){
+ translate([0,-front,-height])
+ rotate([-90,0,0])
+ Cover();
+}
+
+module Demo(){ ////toplevel
+ %Block();
+ DoKnives();
+ color([0,0,1]) CoverAligned();
+}
+
+Demo();
+//Cover();