pegdepthproportion = 0.80;
// computed
+
+function width(k) = widths[k];
+
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");
}
}