mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-08 12:13:41 +02:00
Updated DRC documentation
This commit is contained in:
@@ -177,6 +177,31 @@ run_demo gen, "input.width(1.2, projection)", "drc_width2.png"
|
||||
run_demo gen, "input.width(1.2, square)", "drc_width3.png"
|
||||
run_demo gen, "input.width(1.2, whole_edges)", "drc_width4.png"
|
||||
|
||||
class Gen
|
||||
def produce(s1, s2)
|
||||
pts = [
|
||||
RBA::Point::new(0, 0),
|
||||
RBA::Point::new(3000, 0),
|
||||
RBA::Point::new(3000, 4000),
|
||||
RBA::Point::new(5000, 4000),
|
||||
RBA::Point::new(5000, 7000),
|
||||
RBA::Point::new(2000, 7000),
|
||||
RBA::Point::new(2000, 2000),
|
||||
RBA::Point::new(0, 2000)
|
||||
];
|
||||
s1.insert(RBA::Polygon::new(pts))
|
||||
end
|
||||
end
|
||||
|
||||
gen = Gen::new
|
||||
|
||||
run_demo gen, "input.drc(width < 2.0)", "drc_width1u.png"
|
||||
run_demo gen, "input.drc(width(projection) < 2.0)", "drc_width2u.png"
|
||||
run_demo gen, "input.drc(width(projection) > 2.0)", "drc_width3u.png"
|
||||
run_demo gen, "input.drc(width(projection) == 2.0)", "drc_width4u.png"
|
||||
run_demo gen, "input.drc(width(projection) != 2.0)", "drc_width5u.png"
|
||||
run_demo gen, "input.drc(1.0 < width(projection) <= 3.0)", "drc_width6u.png"
|
||||
|
||||
class Gen
|
||||
def produce(s1, s2)
|
||||
pts = [
|
||||
|
||||
Reference in New Issue
Block a user