VTK
KDTree Find The Closest Distance From Test Point To Points Set
We had used vtkImplicitPolyDataDistance to calculate the distance from a point to the target points set in the post Calculate Distance From A Point To PolyData In VTK. We will try a new way using KD-Tree to find the closest point to the test point. The following example puts a Read more…