(self, vtkself, request, inInfo, outInfo)
| 204 | outMask.SetValue(cursor.GetGlobalNodeIndex(), discard) |
| 205 | |
| 206 | def RequestData(self, vtkself, request, inInfo, outInfo): |
| 207 | inp = self.GetInputData(inInfo, 0, 0) |
| 208 | out = self.GetOutputData(outInfo, 0) |
| 209 | out.ShallowCopy(inp) |
| 210 | |
| 211 | scalar = inp.GetPointData().GetArray('scalar') |
| 212 | assert(scalar) |
| 213 | |
| 214 | outMask = vtkBitArray() |
| 215 | outMask.SetNumberOfTuples(out.GetNumberOfVertices()) |
| 216 | |
| 217 | cursor = vtkHyperTreeGridNonOrientedCursor() |
| 218 | for treeId in range(inp.GetMaxNumberOfTrees()): |
| 219 | inp.InitializeNonOrientedCursor( cursor, treeId ) |
| 220 | self.RecursiveProcess( cursor, scalar, outMask ) |
| 221 | |
| 222 | out.SetMask( outMask ) |
| 223 | return 1 |
| 224 | |
| 225 | myAlgo = MyAlgorithm() |
| 226 | myAlgo.SetSelectValue(1) # 1 or -1 |
nothing calls this directly
no test coverage detected