chiark / gitweb /
knifeblock: hull
[reprap-play.git] / knifeblock.scad
1 // -*- C -*-
2
3 widths = [15.5, 15.8, 19.0];
4
5 bladew = 5; // 2.5
6
7
8 module ImportTemplate(w,k,t) {
9   fn = str("knifeblock-knives-t",k,t,".dxf");
10   echo(fn);
11   translate([0,0, -w/2])
12     linear_extrude(height=w)
13     import(file=fn, convexity=100);
14 }
15
16 module Knife(k){
17   translate([0,50*k,0]){
18     ImportTemplate(bladew, k,"bl");
19     hull(){
20       ImportTemplate(widths[k], k,"hl");
21       translate([-100,0,0])
22         ImportTemplate(widths[k], k,"hl");
23     }
24   }
25 }
26
27 Knife(0);
28 Knife(1);
29 Knife(2);
30 //import(file="knifeblock-knives-t0bl.dxf",convexity=100);