Fixed issue #1967 (Net tracer bug)

This commit is contained in:
Matthias Koefferlein 2025-01-11 21:47:33 +01:00
parent 2d5ddd794c
commit ddbb138872
2 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, "");
}