chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b262711
)
knifeblock: hull
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 30 Dec 2014 21:50:24 +0000
(21:50 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 30 Dec 2014 21:50:24 +0000
(21:50 +0000)
knifeblock.scad
patch
|
blob
|
history
diff --git
a/knifeblock.scad
b/knifeblock.scad
index 6dc35dd425f3e4febdd0084b149f1e13e2c8b1fe..9738d5927ff778cedbaafcaa52ed1a344c69b93b 100644
(file)
--- a/
knifeblock.scad
+++ b/
knifeblock.scad
@@
-1,17
+1,26
@@
// -*- C -*-
// -*- C -*-
-//import(file="t.dxf");
-module ImportTemplate(k,t) {
+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);
fn = str("knifeblock-knives-t",k,t,".dxf");
echo(fn);
- import(file=fn, convexity=100);
+ translate([0,0, -w/2])
+ linear_extrude(height=w)
+ import(file=fn, convexity=100);
}
module Knife(k){
translate([0,50*k,0]){
}
module Knife(k){
translate([0,50*k,0]){
- ImportTemplate(k,"bl");
- translate([0,0,10])
- ImportTemplate(k,"hl");
+ ImportTemplate(bladew, k,"bl");
+ hull(){
+ ImportTemplate(widths[k], k,"hl");
+ translate([-100,0,0])
+ ImportTemplate(widths[k], k,"hl");
+ }
}
}
}
}