summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-11-24 01:00:19 (GMT)
committerMarius Kintel <marius@kintel.net>2013-11-24 01:00:19 (GMT)
commit7b526bc27ab70f362332640987bc3f8c363b3659 (patch)
tree641660a1659a55c4277df50d65bf5f9c2ab9f526 /testdata
parentab102cec8518ffe1bc7ecefa7986e8390367c692 (diff)
Added test for polygon with hole
Diffstat (limited to 'testdata')
-rw-r--r--testdata/scad/features/polygon-tests.scad6
1 files changed, 6 insertions, 0 deletions
diff --git a/testdata/scad/features/polygon-tests.scad b/testdata/scad/features/polygon-tests.scad
index b4e92b6..0cd259f 100644
--- a/testdata/scad/features/polygon-tests.scad
+++ b/testdata/scad/features/polygon-tests.scad
@@ -15,4 +15,10 @@ translate([-2,0,0]) polygon(points);
translate([-2,-2,0]) polygon(points=points, paths=[[0,1,2,3], [4,5,6,7]]);
translate([2,-4,0]) polygon([[0,0], [1,0], [1,1], [0,0]]);
+// With hole
+translate([-2,-4,0])
+ 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]]
+);
+
// FIXME: convexity
contact: Jan Huwald // Impressum