fix bounds calculation for arrays with manhattan rotation
This commit is contained in:
parent
31863c9799
commit
4334d0d50b
1 changed files with 2 additions and 0 deletions
|
|
@ -436,6 +436,8 @@ class Pattern(PortList, AnnotatableImpl, Mirrorable):
|
|||
corners = (rotation_matrix_2d(ref.rotation) @ ubounds.T).T
|
||||
bounds = numpy.vstack((numpy.min(corners, axis=0),
|
||||
numpy.max(corners, axis=0))) * ref.scale + [ref.offset]
|
||||
if ref.repetition is not None:
|
||||
bounds += ref.repetition.get_bounds()
|
||||
|
||||
else:
|
||||
# Non-manhattan rotation, have to figure out bounds by rotating the pattern
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue