chiark / gitweb /
fairphone-case: wip lanyard, more
[reprap-play.git] / fairphone-case.scad
index 38e174329540d4a78c6c53fe8cf47098113442da..4c653cc43b43f22918966bc49e3605e669b890dc 100644 (file)
 //  this case will meet your needs.
 
 include <utils.scad>
+include <funcs.scad>
 
 phone = [ 75.0, 145.0 ];
 
@@ -167,6 +168,8 @@ noisecancelmic_dia = 4.00;
 //fingerpushhole_dias = [ 15, 18 ];
 fingerpushhole_dias = [];
 
+lanyard_half_dia = 1.15;
+
 rearspeaker_pos_bl = [ 12.64, 18.72 ];
 rearspeaker_size   = [  3.76,  7.36 ];
 
@@ -518,6 +521,14 @@ module EdgeProfile(){
   }
 }
 
+module LanyardLanyardProfile(){
+  hull(){
+    for (xs=[-1,+1])
+      translate(xs * 0.5 * lanyard_half_dia * [1,0])
+       circle(r= lanyard_half_dia/2);
+  }
+}
+
 module LidEdgeProfile(){
   polygon([ lpp10,
            lpp11,
@@ -1537,6 +1548,10 @@ module DemoProfiles(){ ////toplevel
   %EdgeProfile();
   KeeperProfile();
   translate([0,0,-1]) color("black") KeeperProfile(1);
+  translate(epp2i)
+    rotate(atan2vector(epp2i - epp1))
+    translate(lanyard_half_dia * 0.5 * [-3,-1])
+  color("purple") LanyardLanyardProfile();
 
   translate([20,0]) {
     LidEdgeProfile();