summaryrefslogtreecommitdiff
path: root/testdata/scad/bugs/polyset-reduce-crash.scad
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-05-01 04:40:57 (GMT)
committerMarius Kintel <marius@kintel.net>2011-05-01 04:40:57 (GMT)
commit50e59e94e25fd500ec8bcaef869da53674040ab4 (patch)
tree64ea315a7258a97457cefb6506c9b443cfc1d9ec /testdata/scad/bugs/polyset-reduce-crash.scad
parent75c06de2db9c3ae78f842187b86b736453cba0c1 (diff)
Reorganized regression test folders
Diffstat (limited to 'testdata/scad/bugs/polyset-reduce-crash.scad')
-rw-r--r--testdata/scad/bugs/polyset-reduce-crash.scad38
1 files changed, 38 insertions, 0 deletions
diff --git a/testdata/scad/bugs/polyset-reduce-crash.scad b/testdata/scad/bugs/polyset-reduce-crash.scad
new file mode 100644
index 0000000..ce9fae7
--- /dev/null
+++ b/testdata/scad/bugs/polyset-reduce-crash.scad
@@ -0,0 +1,38 @@
+N=20;
+
+rotate (a = [0, 0, 36]) {
+ union() {
+ translate ([1, 0]) {
+ polygon (points = [[(N - 1)*cos(180/N), -(N - 1)*sin(180/N)],
+ [(N - 3)*cos(270/N), -(N - 3)*sin(270/N)],
+ [(N - 1)*cos(270/N), -(N - 1)*sin(270/N)]]);
+
+ polygon (points = [[(N - 1)*cos(180/N), -(N - 1)*sin(180/N)],
+ [(N - 3)*cos(180/N), -(N - 3)*sin(180/N)],
+ [(N - 3)*cos(270/N), -(N - 3)*sin(270/N)]]);
+
+ polygon (points = [[N - 1, 0], [N - 3, 0],
+ [(N - 3)*cos(180/N), -(N - 3)*sin(180/N)]]);
+
+ polygon (points = [[N - 1, 0],
+ [(N - 3)*cos(180/N), -(N - 3)*sin(180/N)],
+ [(N - 1)*cos(180/N), -(N - 1)*sin(180/N)]]);
+
+ polygon (points = [[N - 1, 0], [N - 3, 0],
+ [(N - 3)*cos(180/N), (N - 3)*sin(180/N)]]);
+
+ polygon (points = [[N - 1, 0],
+ [(N - 3)*cos(180/N), (N - 3)*sin(180/N)],
+ [(N - 1)*cos(180/N), (N - 1)*sin(180/N)]]);
+
+ polygon (points = [[(N - 1)*cos(180/N), (N - 1)*sin(180/N)],
+ [(N - 3)*cos(180/N), (N - 3)*sin(180/N)],
+ [(N - 3)*cos(270/N), (N - 3)*sin(270/N)]]);
+
+ polygon (points = [[(N - 1)*cos(180/N), (N - 1)*sin(180/N)],
+ [(N - 3)*cos(270/N), (N - 3)*sin(270/N)],
+ [(N - 1)*cos(270/N), (N - 1)*sin(270/N)]]);
+ }
+ circle (r = 20);
+ }
+}
contact: Jan Huwald // Impressum