Skip to content

Commit

Permalink
Make edge geometry validity consistent with ring extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed May 12, 2024
1 parent 3636a3e commit a7873c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kikit/substrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def isValidPcbShape(g):
with zero length. Unfortunately, KiCAD does not discard such lines when
saving. Therefore, we have to check it.
"""
return g.GetShape() != pcbnew.S_SEGMENT or g.GetLength() > 0
return g.GetShape() != pcbnew.S_SEGMENT or g.GetLength() >= fromMm(0.001)

def extractRings(geometryList):
"""
Expand Down

0 comments on commit a7873c2

Please sign in to comment.