diff options
author | Marius Kintel <marius@kintel.net> | 2014-01-14 01:57:49 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2014-01-14 01:57:49 (GMT) |
commit | 34ae2b8f68b73b91f5c4c522620aeed8e5a9e7b7 (patch) | |
tree | a6f44723e944da89ec34823cc5fddeeb41ad04a5 /testdata | |
parent | 23b04c3a9f1aba164d7429fee4669de18a32d9a8 (diff) |
Testcase and fix for a problem transforming an empty bbox with very small numbers in a transformation matrix
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/scad/misc/rotate-empty-bbox.scad | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testdata/scad/misc/rotate-empty-bbox.scad b/testdata/scad/misc/rotate-empty-bbox.scad new file mode 100644 index 0000000..f39a923 --- /dev/null +++ b/testdata/scad/misc/rotate-empty-bbox.scad @@ -0,0 +1,11 @@ +// rotate([90,0,0]) results in a matrix with some close-to-zero values +// Transforming an empty boundingbox by this matrix has caused a problem resulting +// in the union being evaluated to nothing. +rotate([90,0,0]) +difference() { + cube(60, center=true); + union() { + translate([0,0,40]) cube(50, center=true); + cube(0); + } +} |