chiark / gitweb /
fairphone4-case-mount: suppress hinge
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 2 Mar 2022 20:34:10 +0000 (20:34 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 2 Mar 2022 20:34:10 +0000 (20:34 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone4-case-mounted.scad
fairphone4-case.scad

index ec95f3181128b84156d6f1e56d367765421b9e5c..fecff5acc36e1478faa38cb47756492d45e583a4 100644 (file)
@@ -12,3 +12,4 @@ module CaseMounted(){ ////toplevel
 //// toplevels-from:
 include <fairphone4-case.scad>
 $suppress_forward_holes = true;
+$suppress_hinge = true;
index 48cf28e8978fe6a9e0d2e0c6a6e3e7488de7fe34..d3315f1465435abf997844d06125bf532bcc9931 100644 (file)
@@ -237,6 +237,7 @@ lid_fold_clearance_antislop = 0.5;
 
 $button_leg_only = false;
 $suppress_forward_holes = false;
+$suppress_hinge = false;
 
 // ---------- calculated ----------
 
@@ -1093,7 +1094,8 @@ module Case(){ ////toplevel
       }
 
       // hinge
-      HingePortion(hex20, hex21) HingeBaseProfile();
+      if (!$suppress_hinge)
+       HingePortion(hex20, hex21) HingeBaseProfile();
 
       // buildout for prop recess
       if (prop_caserecess_buildout_r > 0) Flip_rhs(1)
@@ -1165,15 +1167,17 @@ module Case(){ ////toplevel
     MicroUSBEtc();
 
     // gaps for the lid's hinge arms
-    HingePortion(hex20 - hinge_x_arms_gap,
-                hex21 + hinge_x_arms_gap)
-      minkowski(){
+    if (!$suppress_hinge) {
+      HingePortion(hex20 - hinge_x_arms_gap,
+                  hex21 + hinge_x_arms_gap)
+       minkowski(){
         HingeLidProfile();
        circle(r= hinge_r_arms_gap, $fn= 8);
       }
 
-    // screw holes in the hinge arms
-    HingeScrews();
+      // screw holes in the hinge arms
+      HingeScrews();
+    }
 
     // thumb recess
     ThumbRecessApply(epp4[1])