summaryrefslogtreecommitdiff
path: root/testdata/scad/features/linear_extrude-tests.scad
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/scad/features/linear_extrude-tests.scad')
-rw-r--r--testdata/scad/features/linear_extrude-tests.scad13
1 files changed, 13 insertions, 0 deletions
diff --git a/testdata/scad/features/linear_extrude-tests.scad b/testdata/scad/features/linear_extrude-tests.scad
new file mode 100644
index 0000000..67de8e6
--- /dev/null
+++ b/testdata/scad/features/linear_extrude-tests.scad
@@ -0,0 +1,13 @@
+// Empty
+rotate_extrude();
+// No children
+rotate_extrude() { }
+// 3D child
+rotate_extrude() { cube(); }
+
+linear_extrude(height=10) square([10,10]);
+translate([19,5,0]) linear_extrude(height=10, center=true) difference() {circle(5); circle(3);}
+translate([31.5,2.5,0]) linear_extrude(height=10, twist=-45) polygon(points = [[-5,-2.5], [5,-2.5], [0,2.5]]);
+
+translate([0,20,0]) linear_extrude(height=20, twist=45, slices=2) square([10,10]);
+translate([19,20,0]) linear_extrude(height=20, twist=45, slices=10) square([10,10]);
contact: Jan Huwald // Impressum