Add mirror_x to extrinsic properties

It's not implemented for Polygon shapes, since I haven't thought about
how to normalize those for reflection yet
This commit is contained in:
Jan Petykiewicz 2019-05-17 00:41:26 -07:00
commit 032c410b43
8 changed files with 21 additions and 12 deletions

View file

@ -169,6 +169,6 @@ class Ellipse(Shape):
scale = self.radius_y
angle = (self.rotation + pi / 2) % pi
return (type(self), radii, self.layer), \
(self.offset, scale/norm_value, angle, self.dose), \
(self.offset, scale/norm_value, angle, False, self.dose), \
lambda: Ellipse(radii=radii*norm_value, layer=self.layer)