diff --git a/testdata/scad/features/resize-tests.scad b/testdata/scad/features/resize-tests.scad index 67e25355ca..659848b95e 100644 --- a/testdata/scad/features/resize-tests.scad +++ b/testdata/scad/features/resize-tests.scad @@ -4,7 +4,7 @@ // and should be inscribed in gold row in 'top' view // back row (green) = should be all cubes auto-scaled up // back top (purple) = uses 'auto' feature -// pink = recursive resize, negative, wrong syntax, etc +// pink = recursive resize, negative, <1, wrong syntax, etc $fn=8; @@ -76,4 +76,6 @@ translate([10,10,-10]) resize([-5,0,0]) cube(); translate([10,20,-10]) resize([-5,0,0],auto=3) cube(); translate([10,30,-10]) resize(-5,0,0,auto=3) cube(); translate([10,40,-10]) resize(5,0,0) cube(); +translate([10,50,-10]) resize([0.5,0,7]) cube([0.5,1,1000]); +translate([10,60,-10]) resize([0,0,0.5]) cube([6,6,10000000000]); } \ No newline at end of file diff --git a/tests/regression/cgalpngtest/resize-tests-expected.png b/tests/regression/cgalpngtest/resize-tests-expected.png index 3023c5132d..8f994bfc76 100644 Binary files a/tests/regression/cgalpngtest/resize-tests-expected.png and b/tests/regression/cgalpngtest/resize-tests-expected.png differ diff --git a/tests/regression/dumptest/resize-tests-expected.txt b/tests/regression/dumptest/resize-tests-expected.txt index e8062506b4..f31290cf61 100644 --- a/tests/regression/dumptest/resize-tests-expected.txt +++ b/tests/regression/dumptest/resize-tests-expected.txt @@ -256,5 +256,15 @@ cube(size = [1, 1, 1], center = false); } } + multmatrix([[1, 0, 0, 10], [0, 1, 0, 50], [0, 0, 1, -10], [0, 0, 0, 1]]) { + resize(newsize = [0.5,0,7], auto = [0,0,0]) { + cube(size = [0.5, 1, 1000], center = false); + } + } + multmatrix([[1, 0, 0, 10], [0, 1, 0, 60], [0, 0, 1, -10], [0, 0, 0, 1]]) { + resize(newsize = [0,0,0.5], auto = [0,0,0]) { + cube(size = [6, 6, 1e+10], center = false); + } + } } diff --git a/tests/regression/opencsgtest/resize-tests-expected.png b/tests/regression/opencsgtest/resize-tests-expected.png index 77b0544a8e..0334ba6768 100644 Binary files a/tests/regression/opencsgtest/resize-tests-expected.png and b/tests/regression/opencsgtest/resize-tests-expected.png differ diff --git a/tests/regression/throwntogethertest/resize-tests-expected.png b/tests/regression/throwntogethertest/resize-tests-expected.png index 19d6881da3..7445c1c081 100644 Binary files a/tests/regression/throwntogethertest/resize-tests-expected.png and b/tests/regression/throwntogethertest/resize-tests-expected.png differ