[vtkusers] Point distance to PolyData

Sebastien BARRE seb-ml-vtk at barre.nom.fr
Thu Jan 25 11:10:36 EST 2001


At 25/01/2001 16:42, Oliver Fleig wrote:

>Is there a way to get the distance of a single point to a surface
>(vtkPolyData).

Sure.
Use a vtkCellLocator, and FindClosestPoint.

>Would be nice the get the intersection point of the corresponding normal
>too.

I guess you mean the intersection point between the line starting from the 
point P along the direction of the normal ?
Same answer, vtkCellLocator, ->IntersectWithLine.





More information about the vtkusers mailing list