# How can I use the vtkProbeFilter with a point cloud

**URL:** https://discourse.vtk.org/t/how-can-i-use-the-vtkprobefilter-with-a-point-cloud/3243
**Category:** Support
**Created:** [May 7, 2020, 4:48pm UTC](https://discourse.vtk.org/t/how-can-i-use-the-vtkprobefilter-with-a-point-cloud/3243 "2020-05-07T16:48:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![timofeymukha](https://discourse.vtk.org/user_avatar/discourse.vtk.org/timofeymukha/32/3779_2.png) [@timofeymukha](https://discourse.vtk.org/u/timofeymukha)
#### Post date: [May 7, 2020, 4:48pm UTC](https://discourse.vtk.org/t/how-can-i-use-the-vtkprobefilter-with-a-point-cloud/3243/1 "2020-05-07T16:48:55Z")

</div>

Dear all,

I’m trying to achieve what seems to be an easy task, yet I cannot manage to do it. I have a large polyData, and a large point cloud (a list of points). I want to sample the cell data values of the polyData at each point in the point cloud. It seems reasonable to use the `vtkProbeFilter`. However, I do not understand how I can pass a point cloud to the filter. It seems like a need a “source”, for example a line source with a given resolution. There are all sorts of source shapes, randomly generated points sources, etc, but I just want a plain, dead-simple predefined cloud of points. I think I am missing something obvious…

I would be very thankful for any pointers. I’m using the Anaconda vtk Python bindings, version 8.2.0.

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [May 7, 2020, 11:52pm UTC](https://discourse.vtk.org/t/how-can-i-use-the-vtkprobefilter-with-a-point-cloud/3243/2 "2020-05-07T23:52:14Z")

</div>

You can set your point cloud as source by calling [`vtkProbeFilter.SetSourceData()`](https://vtk.org/doc/nightly/html/classvtkProbeFilter.html#a0fe7396186b4c576ef73cd7fd75af24e) method.

---

<div class="post-metadata">

### Author: ![timofeymukha](https://discourse.vtk.org/user_avatar/discourse.vtk.org/timofeymukha/32/3779_2.png) [@timofeymukha](https://discourse.vtk.org/u/timofeymukha)
#### Post date: [May 8, 2020, 8:04am UTC](https://discourse.vtk.org/t/how-can-i-use-the-vtkprobefilter-with-a-point-cloud/3243/3 "2020-05-08T08:04:31Z")

</div>

Thanks a million! As I suspected, it was something on the surface 😄
