MCPcopy Index your code
hub / github.com/CadQuery/cadquery / _iterate_actors

Function _iterate_actors

cadquery/vis.py:298–309  ·  view source on GitHub ↗

Iterate over vtkActors, other props are ignored.

(
    obj: Union[vtkProp3D, vtkActor, List[vtkProp3D]]
)

Source from the content-addressed store, hash-verified

296
297
298def _iterate_actors(
299 obj: Union[vtkProp3D, vtkActor, List[vtkProp3D]]
300) -> Iterable[vtkActor]:
301 """
302 Iterate over vtkActors, other props are ignored.
303 """
304 if isinstance(obj, vtkActor):
305 yield obj
306 elif isinstance(obj, list):
307 for el in obj:
308 if isinstance(el, vtkActor):
309 yield el
310
311
312def style(

Callers 1

styleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected