WIP (shielding, various bug fixes)

This commit is contained in:
Matthias Koefferlein
2021-01-17 14:38:44 +01:00
parent 9a55bdc687
commit fd90e66ee1
25 changed files with 247 additions and 143 deletions
+19
View File
@@ -0,0 +1,19 @@
source $drc_test_source
target $drc_test_target
if $drc_test_deep
deep
end
l1 = input(1, 0)
l2 = input(2, 0)
l3 = input(3, 0)
l1.output(1, 0)
l2.output(2, 0)
l3.output(3, 0)
l1.drc(primary.interacting((space(shielded) < 1.0).polygons)).output(100, 0)
l1.drc(primary.interacting((space(transparent) < 1.0).polygons)).output(101, 0)
Binary file not shown.
+24
View File
@@ -0,0 +1,24 @@
source $drc_test_source
target $drc_test_target
if $drc_test_deep
deep
end
l1 = input(1, 0)
l2 = input(2, 0)
l3 = input(3, 0)
l1.output(1, 0)
l2.output(2, 0)
l3.output(3, 0)
# advanced shielding (self, symmetric space)
l1.drc(width(projection, shielded) < 1.0).output(100, 0)
l1.drc(width(projection, transparent) < 1.0).output(101, 0)
l1.drc(space(projection, shielded) < 1.0).output(110, 0)
l1.drc(space(projection, transparent) < 1.0).output(111, 0)
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+24
View File
@@ -0,0 +1,24 @@
source $drc_test_source
target $drc_test_target
if $drc_test_deep
deep
end
l1 = input(1, 0)
l2 = input(2, 0)
l3 = input(3, 0)
l1.output(1, 0)
l2.output(2, 0)
l3.output(3, 0)
# advanced shielding (self, symmetric space)
l1.width(1.0, projection, shielded).output(100, 0)
l1.width(1.0, projection, transparent).output(101, 0)
l1.space(1.0, projection, shielded).output(110, 0)
l1.space(1.0, projection, transparent).output(111, 0)
Binary file not shown.
Binary file not shown.
Binary file not shown.
+10 -13
View File
@@ -321,19 +321,16 @@ def run_testsuite(dm, ic, tiled = false, hier = false)
lb += 10 #230
message "--- isolated #{lb}"
b.isolated(0.4).polygons.output(lb, dm)
b.isolated(0.4).polygons.xor(b.iso(0.4).polygons).is_empty? == true || raise("xor not empty")
b.isolated(0.4, euclidian).polygons.output(lb + 1, dm)
b.isolated(0.4, square).polygons.output(lb + 2, dm)
b.isolated(0.4, projection).polygons.output(lb + 3, dm)
b.isolated(0.4, euclidian, whole_edges).polygons.output(lb + 4, dm)
b.isolated(0.4, euclidian, projection_limits(0.4, nil)).polygons.output(lb + 5, dm)
b.isolated(0.4, euclidian, projection_limits(nil, 0.4)).polygons.output(lb + 6, dm)
if has_float_range
b.isolated(0.4, euclidian, projection_limits(0..0.4)).polygons.output(lb + 7, dm)
else
b.isolated(0.4, euclidian, projection_limits(0, 0.4)).polygons.output(lb + 7, dm)
end
b.isolated(0.4, shielded).polygons.output(lb, dm)
b.isolated(0.4, shielded).polygons.xor(b.iso(0.4, shielded).polygons).is_empty? == true || raise("xor not empty")
b.isolated(0.4, shielded, euclidian).polygons.output(lb + 1, dm)
b.isolated(0.4, shielded, square).polygons.output(lb + 2, dm)
b.isolated(0.4, shielded, projection).polygons.output(lb + 3, dm)
b.isolated(0.4, shielded, euclidian, whole_edges).polygons.output(lb + 4, dm)
b.isolated(0.4, shielded, euclidian, projection_limits(0.4, nil)).polygons.output(lb + 5, dm)
b.isolated(0.4, shielded, euclidian, projection_limits(nil, 0.4)).polygons.output(lb + 6, dm)
b.isolated(0.4, shielded, euclidian, projecting < 0.4).polygons.output(lb + 7, dm)
b.isolated(0.4, transparent).polygons.output(lb + 8, dm)
lb += 10 #240
message "--- notch #{lb}"
Binary file not shown.