This seems more correct
This commit is contained in:
parent
9b9a95b71a
commit
1cf3086cf6
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue