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

Method traverse

cadquery/assembly.py:686–695  ·  view source on GitHub ↗

Yield (name, child) pairs in a bottom-up manner

(self)

Source from the content-addressed store, hash-verified

684 return rv
685
686 def traverse(self) -> Iterator[Tuple[str, "Assembly"]]:
687 """
688 Yield (name, child) pairs in a bottom-up manner
689 """
690
691 for ch in self.children:
692 for el in ch.traverse():
693 yield el
694
695 yield (self.name, self)
696
697 def _flatten(self, parents=[]):
698 """

Callers 15

test_assemblyFunction · 0.45
XBFunction · 0.45
CLFunction · 0.45
OLFunction · 0.45
TVFunction · 0.45
DjFunction · 0.45
aGFunction · 0.45
LGFunction · 0.45
JGFunction · 0.45
uUFunction · 0.45
wUFunction · 0.45
VzFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_assemblyFunction · 0.36