chiark / gitweb /
sewing-table: PostTestPiece prep: make $screw_dia a special variable
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 18 Jun 2017 10:05:31 +0000 (11:05 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 18 Jun 2017 10:05:31 +0000 (11:05 +0100)
sewing-table.scad.m4

index 3cd3ce252d8eef142a8f8f027497f5917d18a3e6..19ab13872a951559431aef85f0b8445181f1a9c8 100644 (file)
@@ -14,7 +14,7 @@ post_dia = 8;
 
 post_shorter = 1;
 
 
 post_shorter = 1;
 
-screw_dia = 3.168;
+$screw_dia = 3.168;
 screw_big_dia = 3.6;
 screw_big_len = 4.0;
 
 screw_big_dia = 3.6;
 screw_big_len = 4.0;
 
@@ -151,7 +151,7 @@ module Post(){
        cylinder(r= post_dia/2, h= tile_th + ply_th - post_shorter);
        translate([0,0, tile_th]) {
          cylinder(r= screw_big_dia/2, h= screw_big_len);
        cylinder(r= post_dia/2, h= tile_th + ply_th - post_shorter);
        translate([0,0, tile_th]) {
          cylinder(r= screw_big_dia/2, h= screw_big_len);
-         cylinder(r= screw_dia/2, h= ply_th, $fn=20);
+         cylinder(r= $screw_dia/2, h= ply_th, $fn=20);
        }
       }
     }
        }
       }
     }