# problem with interpolating vtkImageData on vtkPolyData with vtkPointInterpolator

**URL:** https://discourse.vtk.org/t/problem-with-interpolating-vtkimagedata-on-vtkpolydata-with-vtkpointinterpolator/6594
**Category:** Support
**Created:** [September 9, 2021, 1:34pm UTC](https://discourse.vtk.org/t/problem-with-interpolating-vtkimagedata-on-vtkpolydata-with-vtkpointinterpolator/6594 "2021-09-09T13:34:20Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![kerim](https://discourse.vtk.org/user_avatar/discourse.vtk.org/kerim/32/1175_2.png) [@kerim](https://discourse.vtk.org/u/kerim)
#### Post date: [October 27, 2021, 11:04pm UTC](https://discourse.vtk.org/t/problem-with-interpolating-vtkimagedata-on-vtkpolydata-with-vtkpointinterpolator/6594/8 "2021-10-27T23:04:22Z")

</div>

@dgobbi thank you, this helped me to solve similar problem.

I’m interpolating custom object inherited from `vtkDataSet` and I’m wondering is it possible to somehow tell the interpolator that it should look for the points in some order?

My dataset has some [partly predictable structure](https://discourse.vtk.org/t/writing-custom-class-based-on-vtkdataset/6950/3) and I would like to experiment with perfomance (the dataset may take pretty much of memory).

Is it `vtkPointLocator` I should try to look at and probably inherit from it? Or `vtkDataSet::GetPoint()/GetCell()` are the only methods I should improve?

---

_[View the full topic](https://discourse.vtk.org/t/problem-with-interpolating-vtkimagedata-on-vtkpolydata-with-vtkpointinterpolator/6594)._
