# vtkProbeFilter or vtkResampleWithDataset?

**URL:** https://discourse.vtk.org/t/vtkprobefilter-or-vtkresamplewithdataset/10876
**Category:** Support
**Tags:** python
**Created:** [March 3, 2023, 5:56pm UTC](https://discourse.vtk.org/t/vtkprobefilter-or-vtkresamplewithdataset/10876 "2023-03-03T17:56:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rexthor](https://discourse.vtk.org/user_avatar/discourse.vtk.org/rexthor/32/6481_2.png) [@rexthor](https://discourse.vtk.org/u/rexthor)
#### Post date: [March 3, 2023, 5:56pm UTC](https://discourse.vtk.org/t/vtkprobefilter-or-vtkresamplewithdataset/10876/1 "2023-03-03T17:56:34Z")

</div>

I have a `vtkStructuredGrid` that I would like to sample with a `vtkPlaneSource`. Which would be more appropriate `vtkProbeFilter` or `vtkResampleWithDataset`? (I only care about point values - I don’t have any cell values that I need sampled) … or maybe there is some class that is better than those I mentioned?

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cory.quammen/32/6751_2.png) [@cory.quammen](https://discourse.vtk.org/u/cory.quammen)
#### Post date: [March 3, 2023, 7:59pm UTC](https://discourse.vtk.org/t/vtkprobefilter-or-vtkresamplewithdataset/10876/2 "2023-03-03T19:59:40Z")

</div>

`vtkResampleWithDataset` should be your choice - it uses `vtkProbeFilter` internally.

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [March 3, 2023, 9:38pm UTC](https://discourse.vtk.org/t/vtkprobefilter-or-vtkresamplewithdataset/10876/3 "2023-03-03T21:38:54Z")

</div>

If you want to strictly ignore the cells in your source data (i.e. if you only care about the point scalars and don’t want the results to be influenced by the cell structure at all), then you can use `vtkPointInterpolator`.

---

<div class="post-metadata">

### Author: ![rexthor](https://discourse.vtk.org/user_avatar/discourse.vtk.org/rexthor/32/6481_2.png) [@rexthor](https://discourse.vtk.org/u/rexthor)
#### Post date: [March 6, 2023, 3:03pm UTC](https://discourse.vtk.org/t/vtkprobefilter-or-vtkresamplewithdataset/10876/4 "2023-03-06T15:03:54Z")

</div>

Thank you both for your answers.
