chiark / gitweb /
earring-stand: wip FrontPattern, break out totalh (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 23 Jul 2016 23:38:06 +0000 (00:38 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 23 Jul 2016 23:38:06 +0000 (00:38 +0100)
earring-stand.scad

index 8a77ed41ad7d248632651acafd00066c1e5c074c..976a83f9babacf4e94ec1274a2f42345d0d91cea 100644 (file)
@@ -235,11 +235,12 @@ module Base(){
 }
 
 module FrontPattern(){
+  totalh = front_height - eclip_wall_offset + thicks[1];
+
   ystride = front_hex_stride;
   xstride = front_hex_stride * cos(30) * 2;
   difference(){
-    square([front_width,
-           front_height - eclip_wall_offset + thicks[1]]);
+    square([front_width, totalh]);
     for (xi=[ 0 : 10 ])
       translate([xi * xstride, 0])
       for (yi=[ 0 : 10 ])