Programmable filter with vtkProbeFilter

Dear support,

I am trying to resample my dataset in a programable filter using the vtkProbeFilter as a part of a much more complex final objective. However I couldn’t find any example to use it within ParaView and the vtkProbeFilter examples aren’t available anymore.

Would it be possible to have an example of a vtkProbeFilter where the point data of a dataset (unstructured, multiblock, composite, etc…) is proved in a given location (i.e. vtkPoints()) and output in ParaView?

Thank you in advance!

Hi,

Why not just using ResampleWithDataSet ?

My objective is to create a filter which permits to compute the boundary layer height over a wing and set the value in the wing surface. For this I need to trace normal lines from the surface, probe the velocity (the step where I am stuck), find its value and output the height in the wing’s surface . I believe that ResampleWithDataSet would add much more elements in my pipeline and I wanted to keep it as clean as possible.

Sounds more like you want a custom composite filter, not a programmable filter: 11. Advanced: Tips & Tricks — ParaView Documentation 6.0.0 documentation

That’s a new topic for me I will take a look at it. Thanks!

I went over it and it seems to be useful for combining multiple filters. However I think that with the existing filters I won’t achieve my objective in the final format that I would like to have and my goal is to don’t use the GUI at all. This is why I was relying on the programmable filter and using the vtk library to perform the required operations.

It is better to create a programmable filter focused on the “feature gap” and do only the processing that ParaView cannot do, and then to combine them all in a custom filter.

1 Like

I see, I will give it a second thought. Thanks for the support!

1 Like

I have been trying different filter combinations and I cannot make it work the way I would like to.

Given 2 datasets, A) one with the surface data and normal vectors and B) another with the flowfield, which would be the best approach to generate X normal lines (one per surface point) and use the ResampleWithDataSet to interpolate the point data over them?

This can be easily done with a for loop creating interpolate over line filters but this can flood the pipeline with thousands of operations (It would be ideal if it was possible to interpolate data on Glyphs :laughing: )

please share your data.