mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Update surface_composite.py (#3189)
This commit is contained in:
parent
9983ee1a7e
commit
70807b146f
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ class CompositeSurface(ABC):
|
|||
return surf
|
||||
|
||||
def rotate(self, rotation, pivot=(0., 0., 0.), order='xyz', inplace=False):
|
||||
surf = copy(self)
|
||||
surf = self if inplace else copy(self)
|
||||
for name in self._surface_names:
|
||||
s = getattr(surf, name)
|
||||
setattr(surf, name, s.rotate(rotation, pivot, order, inplace))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue