Enhancing polygon splitting

With this enhancement, the area ratio in DRC can
be configured as a negative value. This indicates
to take the outer manhattan approximation of the
polygons. This way, skinny diagonals are not
resolved into many small triangles.
This commit is contained in:
Matthias Koefferlein
2024-09-18 23:18:23 +02:00
parent ca9b1d779d
commit e2718c5a54
12 changed files with 272 additions and 12 deletions
@@ -1451,7 +1451,7 @@ NetTracer::determine_interactions (const db::Polygon &seed, const NetTracerShape
{
int area_ratio = 2;
db::Polygon::area_type poly_area = seed.area ();
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) {