chiark / gitweb /
fairphone-case: CatchPortion: introduce difference and some {} (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 15 Mar 2018 21:44:18 +0000 (21:44 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 15 Mar 2018 21:45:01 +0000 (21:45 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index 459b3969c582cd2c60c9ca0b132a642dad580163..32d52dfd8703ec10f4ef5705b1976ff39d4d3718 100644 (file)
@@ -851,10 +851,13 @@ module HingePortion(x0,x1){
 
 module CatchPortion(xwidth, ztop){
   width = catch_width + xwidth;
-  translate([phone_width/2, 0,0])
-    rotate([90,0,-90])
-    linextr(-width/2, width/2)
-    children(0);
+  translate([phone_width/2, 0,0]){
+    difference(){
+      rotate([90,0,-90])
+       linextr(-width/2, width/2)
+       children(0);
+    }
+  }
 }
 
 module CaseBase(){