chiark / gitweb /
fairphone-case: wip lanyard, introduce ly_theta (nfc)
[reprap-play.git] / fairphone-case.scad
index 39966dfb9fccf1874ebadd18c5d8d01f123c9523..ff067db6bbc92ae078d3cd318fc1002912c1049e 100644 (file)
@@ -450,6 +450,9 @@ cppF = [ cppV[0] + catch_finger_depth, cppC[1] ];
 
 ly_r = lanyard_half_dia / 2;
 ly_rc = ly_r * 2;
+
+ly_theta = -atan2vector(epp2i - epp1);
+
 ly_re = 10; // xxx
 
 // prop recess in case
@@ -1653,7 +1656,7 @@ module DemoProfiles(){ ////toplevel
   KeeperProfile();
   translate([0,0,-1]) color("black") KeeperProfile(1);
   color("purple") translate(epp2i)
-    rotate(atan2vector(epp2i - epp1)) {
+    rotate(-ly_theta) {
     translate(lanyard_half_dia * 0.5 * [-3,-1])
       LanyardLanyardProfile();
     translate(lanyard_half_dia * 0.5 * [-3,+1])