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;
25 totaldepth = front + maxhandledepth + back;
27 module ImportTemplate(w,k,t) {
28 fn = str("knifeblock-knives-t",k,t,".dxf");
30 translate([0,0, -w/2])
31 linear_extrude(height=w)
32 import(file=fn, convexity=100);
36 ImportTemplate(bladew, k,"bl");
38 ImportTemplate(widths[k], k,"hl");
40 ImportTemplate(widths[k], k,"hl");
45 translate([locations[k],0,0]){
47 translate([-(handlelenbase + handlelendelta[k]),0,0])
54 translate([0, yshift * frontbackslop, 0])
55 for (k=[0:nknives-1]) {
62 minkx = locations[0] - widths[0] /2;
63 maxkx = locations[nknives-1] + widths[nknives-1]/2;
69 hull() mirror([0,0,1]) {
70 translate([minx, 0, 0])
71 cube([maxx-minx, totaldepth-front, height]);
72 for (x=[minx + front/2, maxx - front/2])
73 translate([x, -front/2, 0])
74 cylinder(r=side/2, h=height, $fn=30);