chiark / gitweb /
knifeblock: Holes refactor: rename i to j in Holes (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 1 Jan 2015 23:45:15 +0000 (23:45 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 1 Jan 2015 23:45:15 +0000 (23:45 +0000)
knifeblock.scad

index 9eac44e8f2c740958e40d8f1daceee9364e1c9b4..9a7303a41b0a72503bb02c4e5f88d3c333f8aba7 100644 (file)
@@ -234,12 +234,12 @@ module HolesScope(){
 }
 
 module Holes(){
-  imin = ceil((maxx-minx)/(sqrt(3)*holepitch));
-  echo("Holes X count 2 x", imin);
+  jmin = ceil((maxx-minx)/(sqrt(3)*holepitch));
+  echo("Holes X count 2 x", jmin);
   intersection(){
     translate([holeoffx * holepitch, holeoffy * holepitch, 0]) {
-      for (i=[-imin:2]) {
-       translate([i * sqrt(3) * holepitch, 0, 0]) {
+      for (j=[-jmin:2]) {
+       translate([j * sqrt(3) * holepitch, 0, 0]) {
          HoleRow();
          translate([sqrt(3)/2 * holepitch, -0.5 * holepitch, 0])
            HoleRow();