DRC misses lines near polygons if clearance < bloat
Bug #1782041 reported by
Chad Parker
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pcb |
Fix Released
|
High
|
Chad Parker |
Bug Description
The DRC checker may miss lines near polygons if the clearance value is set such that the bounding box of the line doesn't overlap with the polygon, even though the separation is less than the "Bloat" value.
See also bug #746178. Luis de Arquer solved this one also.
The present best solution is to increase the size of the bounding box of the line before checking to see if it intersects with polygons.
Changed in pcb: | |
assignee: | nobody → Chad Parker (parker-charles) |
importance: | Undecided → High |
status: | New → Confirmed |
milestone: | none → pcb-4.2.0 |
Changed in pcb: | |
status: | Confirmed → Fix Committed |
Changed in pcb: | |
milestone: | pcb-4.2.0 → pcb-4.1.3 |
Changed in pcb: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Luis-
I've been pondering whether or not the bounding box should always be set using 2*Bloat, or if it should only be set that way if the clearance is < 2*Bloat.
I think that answer is that in the DRC, we don't actually really care about what the clearance actually is, so long as it's greater than 2*Bloat, so, using 2*Bloat all the time is the right thing to do.
Do you concur with that assessment?
I've pushed your patch to LP1782041, and I've added second commit that reworks it slightly to reduce code duplication.
The only thing I don't like about this is the error message that comes up. The error is that there is insufficient clearance inside of a polygon, but really, it should be the copper too close together error I think. However, I think it's better to flag the error, even if the message isn't quite right, than to let it go unnoticed.
Thanks,
--Chad