Section: Visualization Toolkit Filtering Classes
To create an instance of class vtkKdTreePointLocator, simply invoke its constructor as follows
obj = vtkKdTreePointLocator
obj
is an instance of the vtkKdTreePointLocator class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkKdTreePointLocator = obj.NewInstance ()
vtkKdTreePointLocator = obj.SafeDownCast (vtkObject o)
vtkIdType = obj.FindClosestPoint (double x[3])
- Given a position x, return the id of the point closest to it. Alternative
method requires separate x-y-z values.
These methods are thread safe if BuildLocator() is directly or
indirectly called from a single thread first.
obj.FindClosestNPoints (int N, double x[3], vtkIdList result)
- Find the closest N points to a position. This returns the closest
N points to a position. A faster method could be created that returned
N close points to a position, but necessarily the exact N closest.
The returned points are sorted from closest to farthest.
These methods are thread safe if BuildLocator() is directly or
indirectly called from a single thread first.
obj.FindPointsWithinRadius (double R, double x[3], vtkIdList result)
- Find all points within a specified radius R of position x.
The result is not sorted in any specific manner.
These methods are thread safe if BuildLocator() is directly or
indirectly called from a single thread first.
obj.FreeSearchStructure ()
- See vtkLocator interface documentation.
These methods are not thread safe.
obj.BuildLocator ()
- See vtkLocator interface documentation.
These methods are not thread safe.
obj.GenerateRepresentation (int level, vtkPolyData pd)
- See vtkLocator interface documentation.
These methods are not thread safe.