From: Ian Jackson Date: Tue, 30 Dec 2014 21:56:48 +0000 (+0000) Subject: knifeblock: doknives X-Git-Tag: filamentspool-v2-release~281 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=728ba19167c96b423c401d85d666aae832a911e0;p=reprap-play.git knifeblock: doknives --- diff --git a/knifeblock.scad b/knifeblock.scad index 9738d59..7747518 100644 --- a/knifeblock.scad +++ b/knifeblock.scad @@ -1,7 +1,14 @@ // -*- C -*- +nknives = 3; + widths = [15.5, 15.8, 19.0]; +handlelenbase = 60; +handlelendelta = [-10, 0, 0]; + +locations = [-35, 0, 40]; + bladew = 5; // 2.5 @@ -14,17 +21,25 @@ module ImportTemplate(w,k,t) { } module Knife(k){ - translate([0,50*k,0]){ - ImportTemplate(bladew, k,"bl"); - hull(){ + ImportTemplate(bladew, k,"bl"); + hull(){ + ImportTemplate(widths[k], k,"hl"); + translate([-100,0,0]) 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); +module DoKnife(k){ + translate([locations[k],0,0]){ + rotate([0,90,0]) + translate([-(handlelenbase + handlelendelta[k]),0,0]) + Knife(k); + } +} + +module DoKnives(){ + for (k=[0:nknives-1]) + DoKnife(k); +} + +DoKnives();