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:
51e3c21
)
holetest: Break out h, set $fa/$fs, indenting
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 14 Oct 2021 15:19:15 +0000
(16:19 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 14 Oct 2021 15:19:15 +0000
(16:19 +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 b99f7951f3482057586f6382410a90d88f9f8619..195e9b015ecef416e751707c9d5573bbdfadce74 100644
(file)
--- a/
holetest.scad
+++ b/
holetest.scad
@@
-1,11
+1,18
@@
// -*- C -*-
+h=5;
+
+$fa=1;
+$fs=0.1;
+
difference(){
-cube([50,10,5], center=true);
-for (i=[0:2:10]) {
- sz = 4 + i/10;
- echo(sz);
- translate([(i-5)/2 * 7, 0, -7 ])
- cylinder(r= sz/2, h=14, $fn=10);
- }
+ cube([50,10,h], center=true);
+ for (i=[0:2:10]) {
+
+ sz = 4 + i/10;
+
+ echo(sz);
+ translate([(i-5)/2 * 7, 0, -7 ])
+ cylinder(r= sz/2, h=14);
+ }
}