Streamline use of CompositeSurface with SurfaceFilter (#3167)

Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Zoe Prieto 2025-02-20 22:51:05 -03:00 committed by GitHub
parent 7638661fad
commit 2b788ea6e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,6 +33,10 @@ class CompositeSurface(ABC):
setattr(surf, name, s.rotate(rotation, pivot, order, inplace))
return surf
@property
def component_surfaces(self):
return [getattr(self, name) for name in self._surface_names]
@property
def boundary_type(self):
return getattr(self, self._surface_names[0]).boundary_type