chiark / gitweb /
utils: linextr: Honour convexity and default it to 20
[reprap-play.git] / utils.scad
index 6af49c493de8235e752d7de5f24c600d5c2ca08c..88a1c0448372066ee5b662f43457bd5eeb911b55 100644 (file)
@@ -30,8 +30,8 @@ module rectfromto(a,b) {
     square([abs(ab[0]), abs(ab[1])]);
 }
 module circleat(c,r) { translate(c) circle(r); }
-module linextr(z0,z1) {
+module linextr(z0,z1, convexity=20) {
   translate([0,0,z0])
-    linear_extrude(height=z1-z0)
+    linear_extrude(height=z1-z0, convexity=convexity)
     children();
 }