chiark / gitweb /
knifeblock: wip, recentered
[reprap-play.git] / knifeblock.scad
index 0894de94fce0af32e84823c87d5d0fea8667ce0d..6dc35dd425f3e4febdd0084b149f1e13e2c8b1fe 100644 (file)
@@ -1,18 +1,21 @@
 // -*- C -*-
 //import(file="t.dxf");
 
-module ImportTemplate(l) {
-  import(file=str("knifeblock-knives-l",l,".dxf"), convexity=3);
+module ImportTemplate(k,t) {
+  fn = str("knifeblock-knives-t",k,t,".dxf");
+  echo(fn);
+  import(file=fn, convexity=100);
 }
 
-module Knife(ix){
-  translate([0,50*ix,0]){
-    ImportTemplate(ix*2+1);
+module Knife(k){
+  translate([0,50*k,0]){
+    ImportTemplate(k,"bl");
     translate([0,0,10])
-      ImportTemplate(ix*2+4);
+      ImportTemplate(k,"hl");
   }
 }
 
 Knife(0);
 Knife(1);
 Knife(2);
+//import(file="knifeblock-knives-t0bl.dxf",convexity=100);