MantisBT - VTK
View Issue Details
0011635VTK(No Category)public2010-12-21 06:052012-12-12 12:19
eliya mirov 
David Gobbi 
normalminoralways
closedno change required 
windowswin7
 
 
0011635: FindClosestPointWithinRadius isn't wrapped by python
FindClosestPointWithinRadius is a faster , more efficient way than FindClosestPoint but while FindClosestPoint is wrapped by python, FindClosestPointWithinRadius is not.
these classes I know that uses it: vtkPointLocator, vtkOBBTree vtkOctreePointLocator , vtkAbstractCellLocator , vtkCellLocator.
No tags attached.
Issue History
2010-12-21 06:05eliya mirovNew Issue
2010-12-21 09:27David GobbiAssigned To => David Gobbi
2010-12-21 09:27David GobbiStatusbacklog => tabled
2010-12-21 09:37David GobbiNote Added: 0024311
2010-12-21 09:38David GobbiNote Edited: 0024311bug_revision_view_page.php?bugnote_id=24311#r63
2010-12-21 09:39David GobbiStatustabled => @80@
2010-12-21 09:39David GobbiResolutionopen => no change required
2012-12-12 12:19David GobbiStatuscustomer review => closed

Notes
(0024311)
David Gobbi   
2010-12-21 09:37   
(edited on: 2010-12-21 09:38)
This FindClosestPointWithinRadius() method has been wrapped in the VTK development head since September 17, 2010, and will be in the VTK 5.8 release.

vtkIdType FindClosestPointWithinRadius(double radius, const double x[3], double &dist2);

The "dist2" parameter is passed by reference, so it must be passed a "mutable" argument from Python:

d2 = vtk.mutable(0.0)
pointId = locator.FindClosestPointWithinRadius(10.0, (0.0, 0.0, 0.0), d2)