Hi PV community,
Is it possible to combine the following procedure into one “programmable filter”?:
- create a “programmable source”, say, a vtkStructuredGrid
- select the “resample with dataset” filter to sample my data onto the source created in 1)
- apply a “programmable filter” on the resampled data to further process it and add the processed result into the output of this “programmable filter”
To combine them, I can think of creating a “programmable filter”, and in the script of this programmable filter,
a) create a grid like in 1), and then
b) apply a vtkResampleWithDataSet filter on the grid and my input data,
c) process the resampled “intermediate” data
d) append the processed data to output
The obstacle for me here is how to use the vtkResampleWithDataset filter, like how to set the input grid and data to be resampled, and how to get hold of the resampled data.
Any suggestion is appreciated.