mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-31 18:16:08 +02:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user