mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 14:18:13 +01:00
updated testcase
This commit is contained in:
parent
d5da966062
commit
7386b091f7
@ -5,13 +5,10 @@ module test_shape_cyclicpolygon() {
|
||||
echo("==== test_shape_cyclicpolygon ====");
|
||||
|
||||
expected_all = [
|
||||
[[5.5, -2.59808], [6.12132, -2.12132], [6.59808, -1.5], [6.89778, -0.776457], [7, 0], [6.89778, 0.776457], [6.59808, 1.5], [6.12132, 2.12132], [5.5, 2.59808], [-0.5, 6.06218], [-1.22354, 6.36188], [-2, 6.4641], [-2.77646, 6.36188], [-3.5, 6.06218], [-4.12132, 5.58542], [-4.59808, 4.9641], [-4.89778, 4.24056], [-5, 3.4641], [-5, -3.4641], [-4.89778, -4.24056], [-4.59808, -4.9641], [-4.12132, -5.58542], [-3.5, -6.06218], [-2.77646, -6.36188], [-2, -6.4641], [-1.22354, -6.36188], [-0.5, -6.06218]],
|
||||
|
||||
[[7.87868, -2.12132], [8.35544, -1.5], [8.65514, -0.776457], [8.75736, 0], [8.65514, 0.776457], [8.35544, 1.5], [7.87868, 2.12132], [2.12132, 7.87868], [1.5, 8.35544], [0.776457, 8.65514], [0, 8.75736], [-0.776457, 8.65514], [-1.5, 8.35544], [-2.12132, 7.87868], [-7.87868, 2.12132], [-8.35544, 1.5], [-8.65514, 0.776457], [-8.75736, 0], [-8.65514, -0.776457], [-8.35544, -1.5], [-7.87868, -2.12132], [-2.12132, -7.87868], [-1.5, -8.35544], [-0.776457, -8.65514], [0, -8.75736], [0.776457, -8.65514], [1.5, -8.35544], [2.12132, -7.87868]],
|
||||
|
||||
[[8.71885, -1.76336], [9.09254, -1.0751], [9.27536, -0.313585], [9.25486, 0.469303], [9.03243, 1.22021], [8.71885, 1.76336], [4.37132, 7.74721], [3.83223, 8.31529], [3.16448, 8.72449], [2.41358, 8.94692], [1.63069, 8.96742], [1.01722, 8.83702], [-6.01722, 6.55139], [-6.72409, 6.21424], [-7.3196, 5.70562], [-7.76319, 5.0602], [-8.02461, 4.32196], [-8.09017, 3.69822], [-8.09017, -3.69822], [-7.98795, -4.47468], [-7.68825, -5.19822], [-7.21149, -5.81955], [-6.59017, -6.2963], [-6.01722, -6.55139], [1.01722, -8.83702], [1.78726, -8.97974], [2.56801, -8.9183], [3.30624, -8.65687], [3.95166, -8.21329], [4.37132, -7.74721]],
|
||||
|
||||
[[9.13397, -1.5], [9.43368, -0.776457], [9.5359, 0], [9.43368, 0.776457], [9.13397, 1.5], [5.86603, 7.16025], [5.38927, 7.78157], [4.76795, 8.25833], [4.04441, 8.55803], [3.26795, 8.66025], [-3.26795, 8.66025], [-4.04441, 8.55803], [-4.76795, 8.25833], [-5.38927, 7.78157], [-5.86603, 7.16025], [-9.13397, 1.5], [-9.43368, 0.776457], [-9.5359, 0], [-9.43368, -0.776457], [-9.13397, -1.5], [-5.86603, -7.16025], [-5.38927, -7.78157], [-4.76795, -8.25833], [-4.04441, -8.55803], [-3.26795, -8.66025], [3.26795, -8.66025], [4.04441, -8.55803], [4.76795, -8.25833], [5.38927, -7.78157], [5.86603, -7.16025]]
|
||||
[[5.5, -2.5981], [6.1213, -2.1213], [6.5981, -1.5], [6.8978, -0.7765], [7, 0], [6.8978, 0.7765], [6.5981, 1.5], [6.1213, 2.1213], [5.5, 2.5981], [-0.5, 6.0622], [-1.2235, 6.3619], [-2, 6.4641], [-2.7765, 6.3619], [-3.5, 6.0622], [-4.1213, 5.5854], [-4.5981, 4.9641], [-4.8978, 4.2406], [-5, 3.4641], [-5, -3.4641], [-4.8978, -4.2406], [-4.5981, -4.9641], [-4.1213, -5.5854], [-3.5, -6.0622], [-2.7765, -6.3619], [-2, -6.4641], [-1.2235, -6.3619], [-0.5, -6.0622]],
|
||||
[[7.8787, -2.1213], [8.3554, -1.5], [8.6551, -0.7765], [8.7574, 0], [8.6551, 0.7765], [8.3554, 1.5], [7.8787, 2.1213], [2.1213, 7.8787], [1.5, 8.3554], [0.7765, 8.6551], [0, 8.7574], [-0.7765, 8.6551], [-1.5, 8.3554], [-2.1213, 7.8787], [-7.8787, 2.1213], [-8.3554, 1.5], [-8.6551, 0.7765], [-8.7574, 0], [-8.6551, -0.7765], [-8.3554, -1.5], [-7.8787, -2.1213], [-2.1213, -7.8787], [-1.5, -8.3554], [-0.7765, -8.6551], [0, -8.7574], [0.7765, -8.6551], [1.5, -8.3554], [2.1213, -7.8787]],
|
||||
[[8.7188, -1.7634], [9.0925, -1.0751], [9.2754, -0.3136], [9.2549, 0.4693], [9.0324, 1.2202], [8.7188, 1.7634], [4.3713, 7.7472], [3.8322, 8.3153], [3.1645, 8.7245], [2.4136, 8.9469], [1.6307, 8.9674], [1.0172, 8.837], [-6.0172, 6.5514], [-6.7241, 6.2142], [-7.3196, 5.7056], [-7.7632, 5.0602], [-8.0246, 4.322], [-8.0902, 3.6982], [-8.0902, -3.6982], [-7.9879, -4.4747], [-7.6882, -5.1982], [-7.2115, -5.8195], [-6.5902, -6.2963], [-6.0172, -6.5514], [1.0172, -8.837], [1.7873, -8.9797], [2.568, -8.9183], [3.3062, -8.6569], [3.9517, -8.2133], [4.3713, -7.7472]],
|
||||
[[9.134, -1.5], [9.4337, -0.7765], [9.5359, 0], [9.4337, 0.7765], [9.134, 1.5], [5.866, 7.1603], [5.3893, 7.7816], [4.7679, 8.2583], [4.0444, 8.558], [3.2679, 8.6603], [-3.2679, 8.6603], [-4.0444, 8.558], [-4.7679, 8.2583], [-5.3893, 7.7816], [-5.866, 7.1603], [-9.134, 1.5], [-9.4337, 0.7765], [-9.5359, 0], [-9.4337, -0.7765], [-9.134, -1.5], [-5.866, -7.1603], [-5.3893, -7.7816], [-4.7679, -8.2583], [-4.0444, -8.558], [-3.2679, -8.6603], [3.2679, -8.6603], [4.0444, -8.558], [4.7679, -8.2583], [5.3893, -7.7816], [5.866, -7.1603]]
|
||||
];
|
||||
|
||||
circle_r = 10;
|
||||
@ -25,7 +22,7 @@ module test_shape_cyclicpolygon() {
|
||||
circle_r = circle_r,
|
||||
corner_r = corner_r
|
||||
);
|
||||
|
||||
|
||||
assertEqualPoints(expected_all[i], actual);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user