frontbackslop = 0.25;
+knifewidthslop = 1.6;
+
screwbackdepth = 6.0 - 1.0;
screwdia = 4.0 + 0.5;
screwcsinkdia = 9.8 + 1.0;
pegdepthproportion = 0.80;
// computed
+
+function width(k) = widths[k] + knifewidthslop;
+
side = minsidein + screwcsinkdia + minsideout;
totaldepth = front + maxhandledepth + back;
-minkx = locations[0] - widths[0] /2;
-maxkx = locations[nknives-1] + widths[nknives-1]/2;
+minkx = locations[0] - width(0) /2;
+maxkx = locations[nknives-1] + width(nknives-1)/2;
minx = minkx - side;
maxx = maxkx + side;
module Knife(k){
ImportTemplate(bladew, k,"bl");
hull(){
- ImportTemplate(widths[k], k,"hl");
+ ImportTemplate(width(k), k,"hl");
translate([-100,0,0])
- ImportTemplate(widths[k], k,"hl");
+ ImportTemplate(width(k), k,"hl");
}
}
cylinder(r=screwcsinkdia/2 / (sqrt(3)/2), h=100, $fn=6);
}
-module PegTemplate(){
+module PegTemplate(apex){
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]]);
+ [-0.1, pegheight /2 + apex]]);
}
}
module BlockPegSlot(){
translate([recessblockwidth/2, pegrecess - 0.5*peglen, -height]){
rotate([-90,0,0]) linear_extrude(height=totaldepth){
- PegTemplate();
+ PegTemplate(peghead/2 * 1.2);
}
}
}
sidemidx = minsideout + screwcsinkdia/2;
difference(){
- hull() mirror([0,0,1]) {
- translate([minx, 0, 0])
- cube([maxx-minx, totaldepth-front, height]);
- for (x=[minx + front/2, maxx - front/2])
- translate([x, -front/2, 0])
- cylinder(r=front/2, h=height, $fn=30);
+ mirror([0,0,1]) {
+ translate([minx, -front, 0])
+ cube([maxx-minx, totaldepth, height]);
}
for (x=[minx + sidemidx, maxx - sidemidx]) {
translate([x, 0, -screwabove])
rotate([90,0,0]) {
linear_extrude(height=peglen-pegslopl) {
intersection(){
- translate([-dx,-dy,0]) PegTemplate();
- translate([-dx,+dy,0]) PegTemplate();
- translate([+dx,+dy,0]) PegTemplate();
- translate([+dx,-dy,0]) PegTemplate();
+ translate([-dx,-dy,0]) PegTemplate(0);
+ translate([-dx,+dy,0]) PegTemplate(0);
+ translate([+dx,+dy,0]) PegTemplate(0);
+ translate([+dx,-dy,0]) PegTemplate(0);
}
}
}
module CoverPegSlot(coverlen){
translate([recessblockwidth/2, 0, -1]){
linear_extrude(height= 1 + pegrecess + 0.5*peglen){
- PegTemplate();
+ PegTemplate(0);
}
}
}