[vtkusers] PointLocator questions
    Gil 
    gil at femplusplus.com
       
    Thu Nov 16 10:39:40 EST 2006
    
    
  
Hi All,
I am trying to locate a point in an UnstructuredGrid using 2 methods (not in
the same time) of vtkPointLocator :
1) FindClosestPointWithinRadius
Am I using a wrong type of variable for the returned distance (dist2) ?
the doc says:" vtkPointLocator::FindClosestPointWithinRadius  (  float
radius,
      const float    x[3],
      float &    dist2
     ) "
The tcl code I use:
# define the locator
 vtkPointLocator locator1
  locator1 SetTolerance $toler0
  locator1 SetDataSet usgModel
...
   set dist 0.0
   set found [locator_tmp FindClosestPointWithinRadius $radius $x $y $z
dist]
The error message is:
Object named: locator1, could not find requested method:
FindClosestPointWithinRadius
or the method was called with incorrect arguments.
while executing "locator1 FindClosestPointWithinRadius $radius $x $y $z
dist"
2) FindClosestPoint
   set found [locator1 FindClosestPoint $x $y $z]
This one works but I can not control the tolerance. No matter which value is
given to SetTolerance - the result is not changed as it should.
Thanks for your help,
Gil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061116/8772cf7c/attachment.htm>
    
    
More information about the vtkusers
mailing list