You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i am using the script in KiCAD 7 but i received below error.
.....\viastitching-master\viastitching_dialog.py", line 259, in CheckClearance
the_distance = norm(p2 - p1) # sqrt((p2.x - p1.x) ** 2 + (p2.y - p1.y) ** 2)
TypeError: unsupported operand type(s) for -: 'wxPoint' and 'VECTOR2I'
if yo can change viastitching_dialog .py as below, it is working
p1 = pcbnew.VECTOR2I(via.GetPosition())
corners = area.GetNumCorners()
# Calculate minimum distance from corners
# TODO: remove?
for i in range(corners):
corner = area.GetCornerPosition(i)
p2 = pcbnew.VECTOR2I(corner.getWxPoint())
the_distance = norm(p2 - p1) # sqrt((p2.x - p1.x) ** 2 + (p2.y - p1.y) ** 2)
if the_distance < clearance:
return False
The text was updated successfully, but these errors were encountered:
Hi, i am using the script in KiCAD 7 but i received below error.
.....\viastitching-master\viastitching_dialog.py", line 259, in CheckClearance
the_distance = norm(p2 - p1) # sqrt((p2.x - p1.x) ** 2 + (p2.y - p1.y) ** 2)
TypeError: unsupported operand type(s) for -: 'wxPoint' and 'VECTOR2I'
if yo can change viastitching_dialog .py as below, it is working
p1 = pcbnew.VECTOR2I(via.GetPosition())
corners = area.GetNumCorners()
# Calculate minimum distance from corners
# TODO: remove?
for i in range(corners):
corner = area.GetCornerPosition(i)
p2 = pcbnew.VECTOR2I(corner.getWxPoint())
the_distance = norm(p2 - p1) # sqrt((p2.x - p1.x) ** 2 + (p2.y - p1.y) ** 2)
The text was updated successfully, but these errors were encountered: