Added optional MASK specification to VIA's RECT and POLYGON elements

This commit is contained in:
Matthias Koefferlein 2020-03-29 23:13:22 +02:00
parent fd0b07f0cd
commit 0ae97279d8
1 changed files with 10 additions and 0 deletions

View File

@ -914,6 +914,11 @@ DEFImporter::do_read (db::Layout &layout)
std::string ln = get ();
if (test ("+")) {
expect ("MASK");
get_long ();
}
std::vector<db::Polygon> &polygons = geometry.insert (std::make_pair (ln, std::vector<db::Polygon> ())).first->second;
polygons.push_back (db::Polygon ());
read_polygon (polygons.back (), scale);
@ -922,6 +927,11 @@ DEFImporter::do_read (db::Layout &layout)
std::string ln = get ();
if (test ("+")) {
expect ("MASK");
get_long ();
}
std::vector<db::Polygon> &polygons = geometry.insert (std::make_pair (ln, std::vector<db::Polygon> ())).first->second;
polygons.push_back (db::Polygon ());
read_rect (polygons.back (), scale);