Select the wires of objects on the stack, optionally filtering the selection. If there are multiple objects on the stack, the wires of all objects are collected and a list of all the distinct wires is returned. :param selector: optional Selector object, or string se
(
self: T,
selector: Optional[Union[Selector, str]] = None,
tag: Optional[str] = None,
)
| 893 | return self._selectObjects("Edges", selector, tag) |
| 894 | |
| 895 | def wires( |
| 896 | self: T, |
| 897 | selector: Optional[Union[Selector, str]] = None, |
| 898 | tag: Optional[str] = None, |
| 899 | ) -> T: |
| 900 | """ |
| 901 | Select the wires of objects on the stack, optionally filtering the selection. If there are |
| 902 | multiple objects on the stack, the wires of all objects are collected and a list of all the |
| 903 | distinct wires is returned. |
| 904 | |
| 905 | :param selector: optional Selector object, or string selector expression |
| 906 | (see :class:`StringSyntaxSelector`) |
| 907 | :param tag: if set, search the tagged object instead of self |
| 908 | :return: a CQ object whose stack contains all of the *distinct* wires of *all* objects on |
| 909 | the current stack, filtered by the provided selector. |
| 910 | |
| 911 | If there are no wires for any objects on the current stack, an empty CQ object is returned |
| 912 | |
| 913 | The typical use is to select the wires of a single object on the stack. For example:: |
| 914 | |
| 915 | Workplane().box(1, 1, 1).faces("+Z").wires().size() |
| 916 | |
| 917 | returns 1, because a face typically only has one outer wire |
| 918 | """ |
| 919 | return self._selectObjects("Wires", selector, tag) |
| 920 | |
| 921 | def solids( |
| 922 | self: T, |