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:
07f8bcf
)
holetest: Break out sz
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 14 Oct 2021 15:13:26 +0000
(16:13 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 14 Oct 2021 15:13:26 +0000
(16:13 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
holetest.scad
patch
|
blob
|
history
diff --git
a/holetest.scad
b/holetest.scad
index d3fb80aa8e0b84c99b5a0dcce9f2ef2abde5249a..b99f7951f3482057586f6382410a90d88f9f8619 100644
(file)
--- a/
holetest.scad
+++ b/
holetest.scad
@@
-3,8
+3,9
@@
difference(){
cube([50,10,5], center=true);
for (i=[0:2:10]) {
-echo((4 + i/10));
-translate([(i-5)/2 * 7, 0, -7 ])
-cylinder(r= (4 + i/10)/2, h=14, $fn=10);
-}
+ sz = 4 + i/10;
+ echo(sz);
+ translate([(i-5)/2 * 7, 0, -7 ])
+ cylinder(r= sz/2, h=14, $fn=10);
+ }
}