Hi;

I have found many spatial locators like : vtkPointLocator, vtkKdTree, and vtkOctreePointLocator, but I am confused about the most efficent one.

I have a polydata from which I construct a vtkImageData using some filters like (vtkPolydataToImageData, vtkExtruderFilter and vtkImageStencil).I want for each point in the polydata search the closest point in the vtkImageData and extract the scalar value.

My question is : what is the the best spatial Locator which I can use in this case.

thank you very much in advance