diff options
author | Marius Kintel <marius@kintel.net> | 2013-12-16 01:15:01 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-12-16 01:15:01 (GMT) |
commit | e64bf96b37f483bcc9ac61ef4e3b4a935432cf5c (patch) | |
tree | 3e42349db17a0d34acb083a8ad11dbadcffbdcf4 | |
parent | a9bb2651e0ef7cfcd5af206e9856911b47012568 (diff) |
Added mesh test
-rw-r--r-- | testdata/scad/features/polygon-tests.scad | 5 | ||||
-rw-r--r-- | tests/regression/cgalpngtest/polygon-tests-expected.png | bin | 8321 -> 8744 bytes | |||
-rw-r--r-- | tests/regression/dumptest/polygon-tests-expected.csg | 3 | ||||
-rw-r--r-- | tests/regression/opencsgtest/polygon-tests-expected.png | bin | 9532 -> 9924 bytes | |||
-rw-r--r-- | tests/regression/throwntogethertest/polygon-tests-expected.png | bin | 9626 -> 9997 bytes |
5 files changed, 8 insertions, 0 deletions
diff --git a/testdata/scad/features/polygon-tests.scad b/testdata/scad/features/polygon-tests.scad index 0cd259f..ff1d73f 100644 --- a/testdata/scad/features/polygon-tests.scad +++ b/testdata/scad/features/polygon-tests.scad @@ -21,4 +21,9 @@ translate([-2,-4,0]) paths=[[0,1,2,3],[4,5,6,7]] ); +// Mesh +translate([0,0,0]) +polygon(points = [[0,1], [0,0], [1,0], [1,1], [0.8,0.8], [0.8,0.2], [0.2,0.2], [0.2,0.8]], + paths = [[7,6,5,4,3,2,1,0],[7,0,3,4] ]); + // FIXME: convexity diff --git a/tests/regression/cgalpngtest/polygon-tests-expected.png b/tests/regression/cgalpngtest/polygon-tests-expected.png Binary files differindex 28e4e9f..67fae85 100644 --- a/tests/regression/cgalpngtest/polygon-tests-expected.png +++ b/tests/regression/cgalpngtest/polygon-tests-expected.png diff --git a/tests/regression/dumptest/polygon-tests-expected.csg b/tests/regression/dumptest/polygon-tests-expected.csg index e19bcb0..74b4069 100644 --- a/tests/regression/dumptest/polygon-tests-expected.csg +++ b/tests/regression/dumptest/polygon-tests-expected.csg @@ -36,4 +36,7 @@ group() { multmatrix([[1, 0, 0, -2], [0, 1, 0, -4], [0, 0, 1, 0], [0, 0, 0, 1]]) { polygon(points = [[0, 0], [1, 0], [1, 1], [0, 1], [0.2, 0.2], [0.8, 0.2], [0.8, 0.8], [0.2, 0.8]], paths = [[0, 1, 2, 3], [4, 5, 6, 7]], convexity = 1); } + multmatrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) { + polygon(points = [[0, 1], [0, 0], [1, 0], [1, 1], [0.8, 0.8], [0.8, 0.2], [0.2, 0.2], [0.2, 0.8]], paths = [[7, 6, 5, 4, 3, 2, 1, 0], [7, 0, 3, 4]], convexity = 1); + } } diff --git a/tests/regression/opencsgtest/polygon-tests-expected.png b/tests/regression/opencsgtest/polygon-tests-expected.png Binary files differindex 94bd131..e77b2d2 100644 --- a/tests/regression/opencsgtest/polygon-tests-expected.png +++ b/tests/regression/opencsgtest/polygon-tests-expected.png diff --git a/tests/regression/throwntogethertest/polygon-tests-expected.png b/tests/regression/throwntogethertest/polygon-tests-expected.png Binary files differindex 2ce6b75..a16b0c2 100644 --- a/tests/regression/throwntogethertest/polygon-tests-expected.png +++ b/tests/regression/throwntogethertest/polygon-tests-expected.png |