Merge branch 'master' into issue527

customizer
Marius Kintel 2014-01-19 12:18:32 -05:00
commit 8a5c8e35ce
6 changed files with 19 additions and 6 deletions

View File

@ -3,10 +3,8 @@ Running regression tests:
Prerequisites: cmake, python, ImageMagick 6.5.9.3 or newer
First, get a working qmake GUI build of the main openscad binary. It is
used by the tests. Next, get MCAD installed by using
'git submodule update --init'
First, get a working qmake GUI build of the main openscad binary and install MCAD.
See the main README.
A) Building test environment
@ -38,10 +36,11 @@ $ ctest -C <configs> Adds extended tests belonging to configs.
Default - Run default tests
Heavy - Run more time consuming tests (> ~10 seconds)
Examples - test all examples
Bugs - test known bugs (tests will fail)
All - test everything
Adding a new regression test:
------------------------------
Adding a new test:
------------------
1) create a test file at an appropriate location under testdata/
2) if the test is non-obvious, create a human readable description as comments in the test (or in another file in the same directory in case the file isn't human readable)

View File

@ -32,3 +32,10 @@ translate([25,0,0]) roundedBox2dSimple();
// One child
translate([0,-20,0]) minkowski() { square(10); }
// >2 children
translate([-20,-20,0]) minkowski() {
square(10);
square(2, center=true);
circle(1);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

@ -34,4 +34,11 @@ group() {
square(size = [10, 10], center = false);
}
}
multmatrix([[1, 0, 0, -20], [0, 1, 0, -20], [0, 0, 1, 0], [0, 0, 0, 1]]) {
minkowski(convexity = 0) {
square(size = [10, 10], center = false);
square(size = [2, 2], center = true);
circle($fn = 0, $fa = 12, $fs = 2, r = 1);
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB