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:
e932b1b
)
fairphone-case: fix CaseAperture (nfc)
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 16:47:53 +0000
(16:47 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 16:47:53 +0000
(16:47 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad
patch
|
blob
|
history
diff --git
a/fairphone-case.scad
b/fairphone-case.scad
index a42245321346e5bbccc666351ab82fd64659c415..238abba51865f76367ccbe737b284ce737b53890 100644
(file)
--- a/
fairphone-case.scad
+++ b/
fairphone-case.scad
@@
-266,13
+266,13
@@
module AroundEdges(fill_zstart, fill_th, fill_downwards=0){
[phone_width, -phone_height] + [-1,+1] * phone_cnr_rad);
}
-module CaseAperture(pos, dia
) { // pass $fn too
+module CaseAperture(pos, dia
, $fn) {
theta = 180/$fn;
translate([ pos[0] + bumper[0],
-epp2i[0],
-pos[1] ])
rotate([-90, theta, 0])
- cylinder(r =
jack_
dia/2 / cos(theta),
+ cylinder(r = dia/2 / cos(theta),
h = 60);
}
@@
-388,7
+388,7
@@
module Case(){ ////toplevel
}
// apertures along top edge
- CaseAperture(jack_pos, jack_dia,
$fn=
8);
+ CaseAperture(jack_pos, jack_dia, 8);
}
}