MCPcopy Create free account
hub / github.com/Kitware/VTK / forEachPoint

Function forEachPoint

Filters/Geometry/Testing/Python/structuredGridBlanking.py:31–35  ·  view source on GitHub ↗
(xlim,ylim,zlim, action)

Source from the content-addressed store, hash-verified

29
30#a handy point iterator, calls action() on each point
31def forEachPoint(xlim,ylim,zlim, action):
32 for z in range(0,zlim+1):
33 for y in range(0,ylim+1):
34 for x in range(0,xlim+1):
35 action((x,y,z))
36
37#make geometry
38points = vtkPoints()

Callers 1

Calls 2

rangeClass · 0.50
actionClass · 0.50

Tested by

no test coverage detected