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

Method __iter__

cadquery/sketch.py:174–183  ·  view source on GitHub ↗

Iterate over faces-locations combinations. If not faces are present iterate over edges:

(self)

Source from the content-addressed store, hash-verified

172 self._solve_status = None
173
174 def __iter__(self) -> Iterator[Face] | Iterator[Edge]:
175 """
176 Iterate over faces-locations combinations. If not faces are present
177 iterate over edges:
178 """
179
180 if self._faces:
181 return iter(f for l in self.locs for f in self._faces.moved(l).Faces())
182 else:
183 return iter(e.moved(l) for l in self.locs for e in self._edges)
184
185 def _tag(self: T, val: Sequence[SketchVal], tag: str):
186

Callers

nothing calls this directly

Calls 2

FacesMethod · 0.45
movedMethod · 0.45

Tested by

no test coverage detected