I know that we were almost done deciding on a method to update the pipeline and get the result, but there have been 2 good suggestions that we should consider:
pipeline.update().data
- implementing the
__call__
method so we can do:vtkContourFilter(contour_values=[100])(input)
My two cents on these: I like them both and I wouldn’t mind having both implemented. (1) is a shorter version of what we do in VTK, (2) would allow us to treat the filters as functors and pass them where functions/lambdas/callable objects are used such as map
.
PS: I would suggest using the Update()
method and having it return the algorithm rather than implementing a new Python method.