chiark / gitweb /
fairphone-case: provide linextr (no callers yet, so nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 17:09:36 +0000 (17:09 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Jan 2018 17:09:36 +0000 (17:09 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index 00d167e..6ed1fc4 100644 (file)
@@ -119,6 +119,11 @@ module rectfromto(a,b) {
     square([abs(ab[0]), abs(ab[1])]);
 }
 module circleat(c,r) { translate(c) circle(r); }
+module linextr(z0,z1) {
+  translate([0,0,z0])
+    linear_extrude(height=z1-z0)
+    children();
+}
 
 module KeeperProfile(slant=0){
   use_e = kppe + [0,-1] * slant * keeper_inner_width / keeper_slant_slope;