chiark / gitweb /
fairphone-case: wip lanyard, wip cutout
[reprap-play.git] / fairphone-case.scad
index 12fb893b6c063b88be86a4c6fc2a05048d757147..50396258081ced9d3ea2224aa6363c6ae113714c 100644 (file)
@@ -540,8 +540,7 @@ module LanyardCurveChannelProfile(){
 }  
 
 module LanyardEntryChannelProfile(){
-  translate([0, -ly_r])
-    LanyardLanyardProfile(true);
+  LanyardLanyardProfile(true);
 }  
 
 module LanyardMainChannelProfile(){
@@ -569,10 +568,25 @@ module LanyardEntry(){
        cube([20,20,20]);
     }
   }
+
+  mirror([0,0,1])
+    translate([0,0,-1])
+    linear_extrude(height=20)
+    rotate(-90)
+    LanyardEntryChannelProfile();
 }
 
-module LanyardCutout(){
-  LanyardEntry();
+module LanyardCutout(l){
+  rotate([0,-90,0])
+    linear_extrude(height=l)
+    rotate(-90)
+    LanyardMainChannelProfile();
+
+  for (ee=[0,1]){
+    translate(ee * l * [-1,0])
+      mirror([ee,0,0])
+      LanyardEntry();
+  }
 }
 
 module LidEdgeProfile(){
@@ -1570,8 +1584,8 @@ module DemoFrame(){ ////toplevel
   %HingeLever();
 }
 
-module DemoLanyardEntry(){ ////toplevel
-  LanyardEntry();
+module DemoLanyardCutout(){ ////toplevel
+  LanyardCutout(25);
 }
 
 module DemoHingedFrame(){ ///toplevel