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:
41da769
)
fairphone-case: fix SideButton calculations
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 14:30:07 +0000
(14:30 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 14:30:08 +0000
(14:30 +0000)
nfc with the one current caller
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 07a2ca199f6cea07af94a0ebb7f0d5e066a455fc..572b6e0fcaab510ea31bcc2588cba59d6fa1e190 100644
(file)
--- a/
fairphone-case.scad
+++ b/
fairphone-case.scad
@@
-265,8
+265,8
@@
module SideButton(y, y_ref_sign, l){
// 0 y is centre of button in coordinate system
$button_l= l;
eff_y = y_ref_sign > 0 ? -bumper [1] -y -l/2 :
- y_ref_sign < 0 ? (-phone
+
bumper)[1] +y +l/2 :
-
-
y;
+ y_ref_sign < 0 ? (-phone
-
bumper)[1] +y +l/2 :
+ y;
echo(eff_y);
translate([0, eff_y, 0])
children();