Merge pull request #1968 from KLayout/bugfix/issue-1967

Bugfix/issue 1967
This commit is contained in:
Matthias Köfferlein 2025-01-17 10:10:03 +01:00 committed by GitHub
commit b4dc9a6b1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 13 additions and 1 deletions

View File

@ -1454,7 +1454,7 @@ NetTracer::determine_interactions (const db::Polygon &seed, const NetTracerShape
db::Polygon::area_type poly_area = seed.area_upper_manhattan_bound ();
db::Polygon::area_type box_area = seed.box ().area ();
if (poly_area == box_area && seed.vertices () == 4) {
if (seed.is_box ()) {
// The polygon is a box
determine_interactions (seed.box (), shape, layers, delivery);

View File

@ -394,3 +394,15 @@ TEST(9)
run_test (_this, file, tc, db::LayerProperties (8, 0), db::Point (3000, 6800), file_au, "A");
}
// issue #1967
TEST(10)
{
std::string file = "t10.oas.gz";
std::string file_au = "t10_net.oas.gz";
db::NetTracerConnectivity tc;
tc.add (connection ("1", "2"));
run_test (_this, file, tc, db::LayerProperties (1, 0), db::Point (300000, 7000), file_au, "");
}

BIN
testdata/net_tracer/t10.oas.gz vendored Normal file

Binary file not shown.

BIN
testdata/net_tracer/t10_net.oas.gz vendored Normal file

Binary file not shown.