chiark / gitweb /
floating-test: check how cura does some things
[reprap-play.git] / utils.scad
index 5234d5151e3023d2dda7eb81331884f88f73352c..6af49c493de8235e752d7de5f24c600d5c2ca08c 100644 (file)
@@ -24,3 +24,14 @@ module FArcSegment(xc,yc,inrad,outrad,alpha,delta) {
   }
 }
 
+module rectfromto(a,b) {
+  ab = b - a;
+  translate([min(a[0], b[0]), min(a[1], b[1])])
+    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();
+}