diff --git a/MapAnalyzer/Polygon.py b/MapAnalyzer/Polygon.py index 5132e5f8..e5d15281 100644 --- a/MapAnalyzer/Polygon.py +++ b/MapAnalyzer/Polygon.py @@ -86,10 +86,7 @@ def __init__(self, map_data: "MapData", array: ndarray) -> None: # pragma: no c self._buildables = Buildables(polygon=self) def _set_points(self): - - self.points = set([Point2((int(p[0]), int(p[1]))) for p in self._clean_points]) - self.points = set([Point2(p) for p in self._clean_points]) - points = [p for p in self.map_data.indices_to_points(self.indices)] + points = [p for p in self._clean_points] points.extend(self.corner_points) points.extend(self.perimeter_points) self.points = set([Point2((int(p[0]), int(p[1]))) for p in points])