Add TODO noting that polygon mirroring could be normalized

This commit is contained in:
Jan Petykiewicz 2019-05-17 00:42:14 -07:00
parent f00d283c56
commit a154555902

View File

@ -264,6 +264,8 @@ class Polygon(Shape):
x_min = x_min[y_min] x_min = x_min[y_min]
reordered_vertices = numpy.roll(rotated_vertices, -x_min, axis=0) reordered_vertices = numpy.roll(rotated_vertices, -x_min, axis=0)
# TODO: normalize mirroring?
return (type(self), reordered_vertices.data.tobytes(), self.layer), \ return (type(self), reordered_vertices.data.tobytes(), self.layer), \
(offset, scale/norm_value, rotation, False, self.dose), \ (offset, scale/norm_value, rotation, False, self.dose), \
lambda: Polygon(reordered_vertices*norm_value, layer=self.layer) lambda: Polygon(reordered_vertices*norm_value, layer=self.layer)