[Ref] get_bounds_single shoudl ignore repetition
This commit is contained in:
parent
0c9b435e94
commit
f0eea0382b
2 changed files with 20 additions and 1 deletions
|
|
@ -236,7 +236,10 @@ class Ref(
|
|||
bounds = numpy.vstack((numpy.min(corners, axis=0),
|
||||
numpy.max(corners, axis=0))) * self.scale + [self.offset]
|
||||
return bounds
|
||||
return self.as_pattern(pattern=pattern).get_bounds(library)
|
||||
|
||||
single_ref = self.deepcopy()
|
||||
single_ref.repetition = None
|
||||
return single_ref.as_pattern(pattern=pattern).get_bounds(library)
|
||||
|
||||
def __repr__(self) -> str:
|
||||
rotation = f' r{numpy.rad2deg(self.rotation):g}' if self.rotation != 0 else ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue