chiark / gitweb /
fairphone-case: introduce "phone" (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 12:53:29 +0000 (12:53 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 12:53:30 +0000 (12:53 +0000)
This is part of letting us separate out rubber bumpers etc., which
change the phone size but also move the features of the phone a bit.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index ec9d7f65d52e5627e5a5db327a12b78accecb098..fafbbbdb6e6783928c4176b1c11f5f5cca431339 100644 (file)
@@ -1,7 +1,6 @@
 // -*- C -*-
 
-phone_height = 146.5;
-phone_width = 76.75;
+phone = [ 146.5, 76.75 ];
 
 phone_cnr_rad = 6.0;
 
@@ -51,6 +50,9 @@ strut_min_at_end = 1.5;
 
 // ---------- calculated ----------
 
+phone_height = phone[0];
+phone_width = phone[1];
+
 // ----- could be changed -----
 lid_buttoncover_gap = lid_gap_x;
 lid_buttoncover_overlap = case_th_lip + keeper_gap_z_top;