port translation is already handled in Pattern
This commit is contained in:
parent
ddcd38674f
commit
2364288ba7
@ -429,8 +429,6 @@ class Builder(PortList):
|
||||
self
|
||||
"""
|
||||
self.pattern.translate_elements(offset)
|
||||
for port in self.ports.values():
|
||||
port.translate(offset)
|
||||
return self
|
||||
|
||||
def rotate_around(self, pivot: ArrayLike, angle: float) -> Self:
|
||||
|
@ -338,10 +338,10 @@ class FlatBuilder(PortList):
|
||||
self.ports[name] = p
|
||||
|
||||
other_copy = other.deepcopy()
|
||||
other_copy.ports.clear()
|
||||
other_copy.mirror2d(mirrored)
|
||||
other_copy.rotate_around(pivot, rotation)
|
||||
other_copy.translate_elements(offset)
|
||||
other_copy.ports.clear()
|
||||
self.pattern.append(other_copy)
|
||||
return self
|
||||
|
||||
@ -356,8 +356,6 @@ class FlatBuilder(PortList):
|
||||
self
|
||||
"""
|
||||
self.pattern.translate_elements(offset)
|
||||
for port in self.ports.values():
|
||||
port.translate(offset)
|
||||
return self
|
||||
|
||||
def rotate_around(self, pivot: ArrayLike, angle: float) -> Self:
|
||||
|
Loading…
Reference in New Issue
Block a user