chiark / gitweb /
knifeblock: wip, template reorg
[reprap-play.git] / knifeblock.scad
index 1339ded465c9f6cbac02ba08ae8e43b25b1b8c6c..efe3b3b714a978d13fa1191f954f7d592cfb6689 100644 (file)
@@ -1,18 +1,19 @@
 // -*- C -*-
 //import(file="t.dxf");
 
-module ImportTemplate(l) {
-  import(file=str("knifeblock-knives-l",l,".dxf"), convexity=3);
+module ImportTemplate(k,t) {
+  import(file=str("knifeblock-knives-t",k,t,".dxf"), convexity=3);
 }
 
-module Knife(ix){
-  translate([0,50*ix,0]){
-    ImportTemplate(ix+1);
+module Knife(k){
+  translate([0,50*k,0]){
+    ImportTemplate(k,"b");
     translate([0,0,10])
-      ImportTemplate(ix+4);
+      ImportTemplate(k,"h");
   }
 }
 
 Knife(0);
 Knife(1);
 Knife(2);
+//import(file="t.dxf",convexity=4);