chiark / gitweb /
utils: linextr_x_yz: New module
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 24 Aug 2019 11:56:19 +0000 (12:56 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 24 Aug 2019 11:56:19 +0000 (12:56 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
utils.scad

index 88a1c04..16bd83b 100644 (file)
@@ -35,3 +35,10 @@ module linextr(z0,z1, convexity=20) {
     linear_extrude(height=z1-z0, convexity=convexity)
     children();
 }
+
+module linextr_x_yz(x0,x1, convexity=20) { // XY turn into YZ
+  rotate([90,0,0])
+    rotate([0,90,0])
+    linextr(x0,x1, convexity=convexity)
+    children();
+}