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;
19 totaldepth = front + maxhandledepth + back;
21 module ImportTemplate(w,k,t) {
22 fn = str("knifeblock-knives-t",k,t,".dxf");
24 translate([0,0, -w/2])
25 linear_extrude(height=w)
26 import(file=fn, convexity=100);
30 ImportTemplate(bladew, k,"bl");
32 ImportTemplate(widths[k], k,"hl");
34 ImportTemplate(widths[k], k,"hl");
39 translate([locations[k],0,0]){
41 translate([-(handlelenbase + handlelendelta[k]),0,0])
52 minkx = locations[0] - widths[0] /2;
53 maxkx = locations[nknives-1] + widths[nknives-1]/2;
59 translate([minx, -front, 0])
61 cube([maxx-minx, totaldepth, height]);