Greetings,<div><br></div><div>Can someone please shed some lights into what is the correct syntax in calling vtkKdTree::FindClosestPoint from python:</div><div><br></div><div><br></div><div><div>>>> import os, sys, math, vtk</div>
<div>>>> points = vtk.vtkPoints()</div><div>>>> points.InsertNextPoint( 0, 0, 0 )</div><div>0</div><div>>>> points.InsertNextPoint( 1, 0, 0 )</div><div>1</div><div>>>> points.InsertNextPoint( 1, 1, 0 )</div>
<div>2</div><div>>>> points.InsertNextPoint( 0, 1, 0 )</div><div>3</div><div>>>> kd = vtk.vtkKdTree()</div><div>>>> kd.BuildLocatorFromPoints( points )</div><div>>>> kd.FindPoint( 1, 1, 0 )</div>
<div>2</div><div>>>> dist = 0.0</div><div>>>> kd.FindClosestPoint( 0, 0, 0, dist )</div><div>Traceback (most recent call last):</div><div> File "<stdin>", line 1, in <module></div>
<div>AttributeError: FindClosestPoint</div><div><br></div><div><br></div><div>Thanks,</div></div>