From a1545559025dca692ed87efd3f650c0eb568cf2a Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Fri, 17 May 2019 00:42:14 -0700 Subject: [PATCH] Add TODO noting that polygon mirroring could be normalized --- masque/shapes/polygon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/masque/shapes/polygon.py b/masque/shapes/polygon.py index e42d71b..04b91c7 100644 --- a/masque/shapes/polygon.py +++ b/masque/shapes/polygon.py @@ -264,6 +264,8 @@ class Polygon(Shape): x_min = x_min[y_min] reordered_vertices = numpy.roll(rotated_vertices, -x_min, axis=0) + # TODO: normalize mirroring? + return (type(self), reordered_vertices.data.tobytes(), self.layer), \ (offset, scale/norm_value, rotation, False, self.dose), \ lambda: Polygon(reordered_vertices*norm_value, layer=self.layer)