chiark / gitweb /
fairphone4-case: refactor CaseAperture a bit nfc
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 17 Feb 2022 20:43:08 +0000 (20:43 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 17 Feb 2022 20:43:08 +0000 (20:43 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone4-case.scad

index 37e4f5f897f5e1bf8d3b7a586b1254e651bc951f..c7b59dfe55bc5724bb5cb332087f4cb6b4185241 100644 (file)
@@ -790,9 +790,10 @@ module AroundEdges(fill_zstart, fill_th, fill_downwards=0){
 
 module CaseAperture(pos, dia, $fn) {
   theta = 180/$fn;
-  translate([ pos[0] + bumper[0],
+  translate([ bumper[0],
              -epp2i[0],
-             -pos[1] ])
+              0 ])
+    translate([ pos[0], 0, -pos[1] ])
     rotate([-90, theta, 0])
     cylinder(r = dia/2 / cos(theta),
             h = 60);