X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=blobdiff_plain;f=knifeblock.scad;h=9738d5927ff778cedbaafcaa52ed1a344c69b93b;hp=1339ded465c9f6cbac02ba08ae8e43b25b1b8c6c;hb=5bdff6bd1196797613ecb7600a97202272f0de61;hpb=2d3f39fe6ffde71a404d85d3f1498887a1599e96 diff --git a/knifeblock.scad b/knifeblock.scad index 1339ded..9738d59 100644 --- a/knifeblock.scad +++ b/knifeblock.scad @@ -1,18 +1,30 @@ // -*- C -*- -//import(file="t.dxf"); -module ImportTemplate(l) { - import(file=str("knifeblock-knives-l",l,".dxf"), convexity=3); +widths = [15.5, 15.8, 19.0]; + +bladew = 5; // 2.5 + + +module ImportTemplate(w,k,t) { + fn = str("knifeblock-knives-t",k,t,".dxf"); + echo(fn); + translate([0,0, -w/2]) + linear_extrude(height=w) + import(file=fn, convexity=100); } -module Knife(ix){ - translate([0,50*ix,0]){ - ImportTemplate(ix+1); - translate([0,0,10]) - ImportTemplate(ix+4); +module Knife(k){ + translate([0,50*k,0]){ + ImportTemplate(bladew, k,"bl"); + hull(){ + ImportTemplate(widths[k], k,"hl"); + translate([-100,0,0]) + ImportTemplate(widths[k], k,"hl"); + } } } Knife(0); Knife(1); Knife(2); +//import(file="knifeblock-knives-t0bl.dxf",convexity=100);