chiark / gitweb /
quacks-ingredients: sort out Tests
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Feb 2020 20:33:54 +0000 (20:33 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Feb 2020 20:36:06 +0000 (20:36 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
quacks-ingredients.scad

index 5afdd19569f2e554955f41e9d0af5257006b7bba..50b38e0f0368befb283d07e3ce156e9eaa34bfc2 100644 (file)
@@ -86,14 +86,13 @@ module Token_L5(){
     Token_Spots();
 }
 
-module Frame(phase) {
+module Frame(phase, base_sz) {
   zs = [ initial_layer_thick,
         initial_layer_thick,
         thick,
         thick,
         thick ];
 
-  base_sz = token_dia * [ 6, 1.5 ];
   sz = base_sz + phase * initial_layer_width * 2 * [1,1];
   linear_extrude(height= initial_layer_thick) {
     difference(){
@@ -114,8 +113,9 @@ module Tests(){
   }
 }
 
-module Test_L() { ////toplevel
-  Frame($phase); Tests() Token_L();
+module Tests_L() { ////toplevel
+  Frame($phase, token_dia * [ 6, 1.5 ]);
+  Tests() Token_L();
 }
 
 //Demo();