mirror of https://github.com/KLayout/klayout.git
53 lines
901 B
Plaintext
53 lines
901 B
Plaintext
|
|
source $drc_test_source
|
|
target $drc_test_target
|
|
|
|
if $drc_test_deep
|
|
deep
|
|
end
|
|
|
|
l1 = input(1, 0)
|
|
l2 = input(2, 0)
|
|
|
|
l1.output(1, 0)
|
|
l2.output(2, 0)
|
|
|
|
e1 = l1.edges
|
|
e2 = l2.edges
|
|
|
|
e1.output(10, 0)
|
|
e2.output(11, 0)
|
|
|
|
c1 = l1.corners(as_dots)
|
|
c2 = l2.corners(as_dots)
|
|
|
|
c1.output(20, 0)
|
|
c2.output(21, 0)
|
|
|
|
(c2 & l1).output(100, 0)
|
|
(c2 - l1).output(101, 0)
|
|
|
|
c2.andnot(l1)[0].output(110, 0)
|
|
c2.andnot(l1)[1].output(111, 0)
|
|
|
|
c2.inside_part(l1).output(200, 0)
|
|
c2.outside_part(l1).output(201, 0)
|
|
|
|
c2.inside_outside_part(l1)[0].output(210, 0)
|
|
c2.inside_outside_part(l1)[1].output(211, 0)
|
|
|
|
c2.interacting(l1).output(300, 0)
|
|
c2.not_interacting(l1).output(301, 0)
|
|
|
|
c2.split_interacting(l1)[0].output(310, 0)
|
|
c2.split_interacting(l1)[1].output(311, 0)
|
|
|
|
(c2 & e1).output(400, 0)
|
|
(c2 - e1).output(401, 0)
|
|
(c2 ^ e1).output(402, 0)
|
|
(c2 | e1).output(403, 0)
|
|
|
|
c2.andnot(e1)[0].output(410, 0)
|
|
c2.andnot(e1)[1].output(411, 0)
|
|
|