This seems more correct

This commit is contained in:
XANTRONIX 2025-03-24 13:46:29 -04:00
parent 9b9a95b71a
commit 1cf3086cf6

View file

@ -102,6 +102,11 @@ class PolygonBuilder():
Yield the single point to the caller, while maintaining state of
number of points yielded to the caller.
"""
if self.point_first is None:
self.point_first = point
self.point_last = point
self.point_last = point
yield point
@ -126,11 +131,6 @@ class PolygonBuilder():
last = None
for point in self.sequence:
if self.point_first is None:
self.point_first = point
self.point_last = point
if last is None:
last = point
continue