Skip to content

Commit 3a33bba

Browse files
committed
Allow for small numerical imprecision in full tabs
1 parent af65555 commit 3a33bba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kikit/panelize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,7 @@ def _buildSingleFullTab(self, s: Substrate, a: KiPoint, b: KiPoint,
17571757
faceDistances = [(x, np.around(partitionFace.distance(x), 2)) for x in faceSegments]
17581758
minFaceDistance = min(faceDistances, key=lambda x: x[1])[1]
17591759

1760-
cutFaces = [x for x, d in faceDistances if d == minFaceDistance]
1760+
cutFaces = [x for x, d in faceDistances if abs(d - minFaceDistance) < SHP_EPSILON]
17611761
tabs, cuts = [], []
17621762
for cutLine in listGeometries(shapely.ops.unary_union(cutFaces)):
17631763
if minFaceDistance > 0: # Do not generate degenerated polygons

0 commit comments

Comments
 (0)