fix alternate polygon constructors
This commit is contained in:
parent
0018891200
commit
ee6699a7de
@ -106,7 +106,7 @@ class Polygon(Shape):
|
||||
[+1, +1],
|
||||
[+1, -1]], dtype=float)
|
||||
vertices = 0.5 * side_length * norm_square
|
||||
poly = Polygon(vertices, offset, layer, dose)
|
||||
poly = Polygon(vertices, offset=offset, layer=layer, dose=dose)
|
||||
poly.rotate(rotation)
|
||||
return poly
|
||||
|
||||
@ -133,7 +133,7 @@ class Polygon(Shape):
|
||||
[-lx, +ly],
|
||||
[+lx, +ly],
|
||||
[+lx, -ly]], dtype=float)
|
||||
poly = Polygon(vertices, offset, layer, dose)
|
||||
poly = Polygon(vertices, offset=offset, layer=layer, dose=dose)
|
||||
poly.rotate(rotation)
|
||||
return poly
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user