chiark / gitweb /
fairphone-case: wip lanyard, more
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 18 Mar 2018 12:48:39 +0000 (12:48 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 18 Mar 2018 12:48:39 +0000 (12:48 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index 737d7b8..be955a5 100644 (file)
@@ -521,9 +521,9 @@ module EdgeProfile(){
   }
 }
 
-module LanyardLanyardProfile(){
+module LanyardLanyardProfile(entry=false){
   hull(){
-    for (xs=[-1,+1])
+    for (xs=[-1,+1] * (entry ? 2 : 1))
       translate(xs * 0.5 * lanyard_half_dia * [1,0])
        circle(r= lanyard_half_dia/2);
   }
@@ -1552,6 +1552,12 @@ module DemoProfiles(){ ////toplevel
     rotate(atan2vector(epp2i - epp1))
     translate(lanyard_half_dia * 0.5 * [-3,-1])
     color("purple") LanyardLanyardProfile();
+  translate(epp2o
+           + [0,-1] * case_th_bottom
+           + [0,+1] * lanyard_half_dia * 0.5)
+    rotate(atan2vector(epp2i - epp1))
+    translate(lanyard_half_dia * 0.5 * [-2,0])
+    color("purple") LanyardLanyardProfile(true);
 
   translate([20,0]) {
     LidEdgeProfile();