I would like to compute the smallest distance between pairs of points in two sets. That is, I have a set of points A, and another set of points B. I am currently storing the points of A in a vtkKdTree, and computing the distance from every point in B to the tree. Is there any way to do something like put the points of A in TreeA, and the points of B in TreeB, and find the closest &quot;tree to tree&quot; distance?<br>
<br clear="all">Thanks,<br><br>David<br>