chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57dcb05
)
knifeblock: Holes refactor: rename i to j in Holes (nfc)
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 1 Jan 2015 23:45:15 +0000
(23:45 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 1 Jan 2015 23:45:15 +0000
(23:45 +0000)
knifeblock.scad
patch
|
blob
|
history
diff --git
a/knifeblock.scad
b/knifeblock.scad
index 9eac44e8f2c740958e40d8f1daceee9364e1c9b4..9a7303a41b0a72503bb02c4e5f88d3c333f8aba7 100644
(file)
--- a/
knifeblock.scad
+++ b/
knifeblock.scad
@@
-234,12
+234,12
@@
module HolesScope(){
}
module Holes(){
-
i
min = ceil((maxx-minx)/(sqrt(3)*holepitch));
- echo("Holes X count 2 x",
i
min);
+
j
min = ceil((maxx-minx)/(sqrt(3)*holepitch));
+ echo("Holes X count 2 x",
j
min);
intersection(){
translate([holeoffx * holepitch, holeoffy * holepitch, 0]) {
- for (
i=[-i
min:2]) {
- translate([
i
* sqrt(3) * holepitch, 0, 0]) {
+ for (
j=[-j
min:2]) {
+ translate([
j
* sqrt(3) * holepitch, 0, 0]) {
HoleRow();
translate([sqrt(3)/2 * holepitch, -0.5 * holepitch, 0])
HoleRow();