Select the shells of objects on the stack, optionally filtering the selection. If there are multiple objects on the stack, the shells of all objects are collected and a list of all the distinct shells is returned. :param selector: optional Selector object, or string
(
self: T,
selector: Optional[Union[Selector, str]] = None,
tag: Optional[str] = None,
)
| 948 | return self._selectObjects("Solids", selector, tag) |
| 949 | |
| 950 | def shells( |
| 951 | self: T, |
| 952 | selector: Optional[Union[Selector, str]] = None, |
| 953 | tag: Optional[str] = None, |
| 954 | ) -> T: |
| 955 | """ |
| 956 | Select the shells of objects on the stack, optionally filtering the selection. If there are |
| 957 | multiple objects on the stack, the shells of all objects are collected and a list of all the |
| 958 | distinct shells is returned. |
| 959 | |
| 960 | :param selector: optional Selector object, or string selector expression |
| 961 | (see :class:`StringSyntaxSelector`) |
| 962 | :param tag: if set, search the tagged object instead of self |
| 963 | :return: a CQ object whose stack contains all of the *distinct* shells of *all* objects on |
| 964 | the current stack, filtered by the provided selector. |
| 965 | |
| 966 | If there are no shells for any objects on the current stack, an empty CQ object is returned |
| 967 | |
| 968 | Most solids will have a single shell, which represents the outer surface. A shell will |
| 969 | typically be composed of multiple faces. |
| 970 | """ |
| 971 | return self._selectObjects("Shells", selector, tag) |
| 972 | |
| 973 | def compounds( |
| 974 | self: T, |