Skip to content

Commit

Permalink
Do not yield zero-length segments
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Feb 26, 2024
1 parent e0c897b commit eafe49d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kikit/substrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,8 @@ def _serializeRing(self, ring, reconstructArcs):
# Yield a line
a = coords[i]
b = coords[(i + 1) % len(coords)]
segments.append(self._constructEdgeSegment(a, b))
if a != b:
segments.append(self._constructEdgeSegment(a, b))
i += 1
return segments

Expand Down

0 comments on commit eafe49d

Please sign in to comment.