3 // properties of the knives
5 widths = [15.5, 15.8, 19.0];
7 handlelendelta = [-15, 0, 10];
8 locations = [-35, 0, 40];
12 templatescale = 27.2 / 19.6;
23 screwbackdepth = 6.0 - 1.0;
25 screwcsinkdia = 9.8 + 1.0;
30 side = minsidein + screwcsinkdia + minsideout;
31 totaldepth = front + maxhandledepth + back;
33 module ImportTemplate(w,k,t) {
34 fn = str("knifeblock-knives-t",k,t,".dxf");
36 translate([0,0, -w/2])
37 linear_extrude(height=w)
38 scale(templatescale) import(file=fn, convexity=100);
42 ImportTemplate(bladew, k,"bl");
44 ImportTemplate(widths[k], k,"hl");
46 ImportTemplate(widths[k], k,"hl");
51 translate([locations[k],0,0]){
53 translate([-(handlelenbase + handlelendelta[k]),0,0])
60 translate([0, yshift * frontbackslop, 0])
61 for (k=[0:nknives-1]) {
70 cylinder(r=screwdia/2, h=150, $fn=40);
71 translate([0, totaldepth-front - screwbackdepth, 0])
73 cylinder(r=screwcsinkdia/2 / (sqrt(3)/2), h=100, $fn=6);
77 minkx = locations[0] - widths[0] /2;
78 maxkx = locations[nknives-1] + widths[nknives-1]/2;
83 sidemidx = minsideout + screwcsinkdia/2;
86 hull() mirror([0,0,1]) {
87 translate([minx, 0, 0])
88 cube([maxx-minx, totaldepth-front, height]);
89 for (x=[minx + front/2, maxx - front/2])
90 translate([x, -front/2, 0])
91 cylinder(r=front/2, h=height, $fn=30);
93 for (x=[minx + sidemidx, maxx - sidemidx]) {
94 translate([x, 0, -screwabove])