[vtkusers] Re: PointLocator question
Goodwin Lawlor
goodwin.lawlor at ucd.ie
Fri Nov 17 09:46:06 EST 2006
Gil Lecker at FEM++.com wrote:
> 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"
Hi Gil,
FindClosestPointWithinRadius isn't wrapped by tcl... maybe it should be-
you could file a bug report here: http://www.vtk.org/Bug
hth
Goodwin
More information about the vtkusers
mailing list