Closest point

Will Schroeder will.schroeder at kitware.com
Wed Jan 5 10:28:10 EST 2000


Look at the class vtkCellLocator. It has two methods that might help: FindClosestPoint() and IntersectWithLine(). (IntersectWithLine is useful when you are looking for a cloest point along a particular direction.) Look in vtkSmoothPolyDataFilter to see how FindClosestPoint() works.

Will

At 03:43 PM 1/5/00 +0100, Per Rønsholt Andresen wrote:
>Hi, 
>
>I would like to remove points that are to "fare away". It could be done by computing the closest distance to the 
>other points, and then remove the point, if the distance is too large. Does VTK have such a function? or is it possible to compute the closest 
>distance to the other points in VTK? 



-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------




More information about the vtkusers mailing list