mirror of https://github.com/KLayout/klayout.git
parent
4bb959eb6d
commit
e724dcdb45
|
|
@ -513,6 +513,7 @@ RS274XReader::do_read ()
|
|||
if (m_polygon_mode) {
|
||||
|
||||
// D02 strokes close the polygon (and restart a new one)
|
||||
|
||||
if (m_polygon_points.size () >= 3) {
|
||||
db::DPolygon poly;
|
||||
poly.assign_hull (m_polygon_points.begin (), m_polygon_points.end ());
|
||||
|
|
@ -520,6 +521,7 @@ RS274XReader::do_read ()
|
|||
}
|
||||
|
||||
m_polygon_points.clear ();
|
||||
m_polygon_points.push_back (db::DPoint (x, y));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -297,6 +297,11 @@ TEST(26)
|
|||
run_test (_this, "pos-neg");
|
||||
}
|
||||
|
||||
TEST(27)
|
||||
{
|
||||
run_test (_this, "polygon-mode");
|
||||
}
|
||||
|
||||
TEST(X2_1)
|
||||
{
|
||||
run_test (_this, "x2-1");
|
||||
|
|
|
|||
Loading…
Reference in New Issue