3 // properties of the knives
5 widths = [15.5, 15.8, 19.0];
7 handlelendelta = [-10, 0, 0];
8 locations = [-35, 0, 40];
10 maxhandledepth = 43.5 - 5;
21 screwbackdepth = 6.0 - 1.0;
23 screwcsinkdia = 9.8 + 1.0;
28 side = minsidein + screwcsinkdia + minsideout;
29 totaldepth = front + maxhandledepth + back;
31 module ImportTemplate(w,k,t) {
32 fn = str("knifeblock-knives-t",k,t,".dxf");
34 translate([0,0, -w/2])
35 linear_extrude(height=w)
36 import(file=fn, convexity=100);
40 ImportTemplate(bladew, k,"bl");
42 ImportTemplate(widths[k], k,"hl");
44 ImportTemplate(widths[k], k,"hl");
49 translate([locations[k],0,0]){
51 translate([-(handlelenbase + handlelendelta[k]),0,0])
58 translate([0, yshift * frontbackslop, 0])
59 for (k=[0:nknives-1]) {
68 cylinder(r=screwdia/2, h=150, $fn=40);
69 translate([0, totaldepth-front - screwbackdepth, 0])
71 cylinder(r=screwcsinkdia/2 / (sqrt(3)/2), h=100, $fn=6);
75 minkx = locations[0] - widths[0] /2;
76 maxkx = locations[nknives-1] + widths[nknives-1]/2;
81 sidemidx = minsideout + screwcsinkdia/2;
84 hull() mirror([0,0,1]) {
85 translate([minx, 0, 0])
86 cube([maxx-minx, totaldepth-front, height]);
87 for (x=[minx + front/2, maxx - front/2])
88 translate([x, -front/2, 0])
89 cylinder(r=front/2, h=height, $fn=30);
91 for (x=[minx + sidemidx, maxx - sidemidx]) {
92 translate([x, 0, -screwabove])