chiark / gitweb /
fairphone-case: Rework HingeLeverInnerProfile, prep for change angles (nfc)
[reprap-play.git] / fairphone-case.scad
index 2d4269f77caf4f1f292b0b597ccbe1ed7e2849fb..04c4d61b93c93c6c11f5717a98d86a11bedca2a1 100644 (file)
@@ -589,12 +589,15 @@ module HingeLeverOuterProfile(){
 }
 
 module HingeLeverInnerProfile(){
-  for (c = [hppT, hppB]) {
-    hull()
+  for (s = [-1,+1]) {
+    c = s > 0 ? hppT : hppB;
+    translate(c)
+      mirror([0,0,s>0])
+      hull()
       for (x=[-20,20])
-       for (y=[0, c[1] - hppM[1]])
+       for (y=[0, s * 10])
          translate([x,y])
-           circleat(c, hp_rn);
+           circle(hp_rn);
   }
 }