MCPcopy
hub / github.com/CadQuery/cadquery / wires

Method wires

cadquery/cq.py:895–919  ·  view source on GitHub ↗

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,
    )

Source from the content-addressed store, hash-verified

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,

Callers 15

mirrorYMethod · 0.45
mirrorXMethod · 0.45
test_modesFunction · 0.45
test_distributeFunction · 0.45
test_modifiersFunction · 0.45
test_selectorsFunction · 0.45
testImportDXFMethod · 0.45
testDXFMethod · 0.45
testSweepMethod · 0.45
test2DDrawingMethod · 0.45
testPolarLinesMethod · 0.45
testUnorderedMirrorMethod · 0.45

Calls 1

_selectObjectsMethod · 0.95

Tested by 15

test_modesFunction · 0.36
test_distributeFunction · 0.36
test_modifiersFunction · 0.36
test_selectorsFunction · 0.36
testImportDXFMethod · 0.36
testDXFMethod · 0.36
testSweepMethod · 0.36
test2DDrawingMethod · 0.36
testPolarLinesMethod · 0.36
testUnorderedMirrorMethod · 0.36
testChainedMirrorMethod · 0.36
testTagSelectorsMethod · 0.36