chiark / gitweb /
fairphone-case: tidy up catch: drop xwidth parameter to CatchPortion
[reprap-play.git] / fairphone-case.scad
index bcad96da8d2f893f74424fa0a0b013658af7458f..a9d042364262c45604ebd331c5a6c7b14dee368f 100644 (file)
@@ -964,7 +964,8 @@ module HingePortion(x0,x1){
     children();
 }
 
-module CatchPortion(xwidth, ztop){
+module CatchPortion(ztop){
+  xwidth = catch_side_gap*2;
   width = catch_width + xwidth;
   w = width + catch_topcurve_r*2 + 1;
   translate([phone_width/2, 0,0]){
@@ -1186,7 +1187,7 @@ module Case(){ ////toplevel
     HingeScrews();
 
     // catch striker
-    CatchPortion(catch_side_gap*2, epp4[1])
+    CatchPortion(epp4[1])
       CatchCutProfile();
 
     // lanyard