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

Method __iter__

cadquery/occ_impl/shapes.py:1732–1741  ·  view source on GitHub ↗

Iterate over subshapes.

(self)

Source from the content-addressed store, hash-verified

1730 return display(self)._repr_javascript_()
1731
1732 def __iter__(self) -> Iterator[Shape]:
1733 """
1734 Iterate over subshapes.
1735 """
1736
1737 it = TopoDS_Iterator(self.wrapped)
1738
1739 while it.More():
1740 yield Shape.cast(it.Value())
1741 it.Next()
1742
1743 def ancestors(self, ctx: Shape, kind: Shapes) -> Compound:
1744 """

Callers

nothing calls this directly

Calls 1

castMethod · 0.80

Tested by

no test coverage detected