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:
18b90ad
)
fairphone-case: rework hingescrew parameters: add even better to can easily check nfc
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 30 Jan 2018 13:15:41 +0000
(13:15 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 30 Jan 2018 13:15:41 +0000
(13:15 +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 fbbbf99699efbaf3a68e0fcf0c220f0e51c3b310..7df7f3b89ecc6130fd2af19d618313de2935cf60 100644
(file)
--- a/
fairphone-case.scad
+++ b/
fairphone-case.scad
@@
-238,11
+238,15
@@
hex24 = hex20 + hingescrew_shaft_len + hinge_x_postscrew_gap;
echo(hex20, hex21, hex22, hex23, hex24);
// 6, 10.8725, 10.9975, 13.74, 18.75
-echo(hex20 - 6,
- hex21 - 10.8725,
- hex22 - 10.9975,
- hex23 - 13.74,
- hex24 - 18.75);
+module chk(act,exp) {
+ if (abs(act-exp) > 1e-9) echo("WRONG", act, exp);
+ else echo("ok", act);
+}
+chk(hex20, 6);
+chk(hex21, 10.8725);
+chk(hex22, 10.9975);
+chk(hex23, 13.74);
+chk(hex24, 18.75);
//echo(hingescrew_portion_len);
// catch