summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'testdata')
-rw-r--r--testdata/scad/features/linear_extrude-tests.scad2
-rw-r--r--testdata/scad/misc/localfiles_dir/localfiles-compatibility-test.scad3
-rw-r--r--testdata/scad/misc/localfiles_dir/localfiles_subdir/localfiles_submodule.scad9
3 files changed, 14 insertions, 0 deletions
diff --git a/testdata/scad/features/linear_extrude-tests.scad b/testdata/scad/features/linear_extrude-tests.scad
index 67de8e6..67d892f 100644
--- a/testdata/scad/features/linear_extrude-tests.scad
+++ b/testdata/scad/features/linear_extrude-tests.scad
@@ -11,3 +11,5 @@ translate([31.5,2.5,0]) linear_extrude(height=10, twist=-45) polygon(points = [[
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]);
+
+translate([-15,0,0]) linear_extrude(5) square([10,10]);
diff --git a/testdata/scad/misc/localfiles_dir/localfiles-compatibility-test.scad b/testdata/scad/misc/localfiles_dir/localfiles-compatibility-test.scad
new file mode 100644
index 0000000..d6b197c
--- /dev/null
+++ b/testdata/scad/misc/localfiles_dir/localfiles-compatibility-test.scad
@@ -0,0 +1,3 @@
+use <localfiles_subdir/localfiles_submodule.scad>
+
+localfiles_submodule();
diff --git a/testdata/scad/misc/localfiles_dir/localfiles_subdir/localfiles_submodule.scad b/testdata/scad/misc/localfiles_dir/localfiles_subdir/localfiles_submodule.scad
new file mode 100644
index 0000000..cab3499
--- /dev/null
+++ b/testdata/scad/misc/localfiles_dir/localfiles_subdir/localfiles_submodule.scad
@@ -0,0 +1,9 @@
+module localfiles_submodule()
+{
+ linear_extrude(h=100) import("localfile.dxf");
+ translate([-250,0,0]) linear_extrude(file="localfile.dxf");
+ translate([0,350,0]) rotate_extrude(file="localfile.dxf");
+ translate([250,0,0]) scale([200,200,50]) surface("localfile.dat");
+
+ translate([0,-200,0]) sphere(r=dxf_dim(file="localfile.dxf", name="localfile")/2);
+}
contact: Jan Huwald // Impressum