Try to avoid via close to edge. Not a complete solution since there are no good solution for than with current Python API in KiCad

This commit is contained in:
Jean-Samuel Reynaud
2017-06-13 12:48:36 +02:00
parent bc022af6e1
commit d6f43eb4e4

View File

@ -270,8 +270,11 @@ class FillArea:
current_y = origin.y + (y * self.step)
for dx in [-offset, offset]:
for dy in [-offset, offset]:
r = area.HitTestFilledArea(wxPoint(current_x + dx,
current_y + dy))
point_to_test = wxPoint(current_x + dx,
current_y + dy)
r = area.HitTestFilledArea(point_to_test)
t = area.HitTestForEdge(point_to_test)
r = r and not t
if keepOutMode:
testResult |= r
else: