<div dir="ltr">Hi Michael,<div><br></div><div>The UseCells option did not exist in VTK 6.1, it was only added</div><div>to VTK a few weeks ago. In other words, in VTK 6.1 the picking</div><div>is _always_ done from the raw points (and even in the latest VTK</div><div>master branch, UseCells is Off by default).</div><div><br></div><div> - David</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 30, 2014 at 8:52 AM, redmod79 <span dir="ltr"><<a href="mailto:michael.j.redmond@gmail.com" target="_blank">michael.j.redmond@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">When using vtkPointPicker in python (vtk 6.1), trying to use UseCellsOff and<br>
related methods results in an attribute error... it seems like using cell<br>
points is on by default, and I don't want it to be... I want to be able to<br>
pick the raw points created as shown below and not the cell points (ids 1,<br>
2, 3, 4 of the cell)<br>
<br>
points = vtk.vtkPoints()<br>
... points added<br>
<br>
ugrid = vtk.vtkUnstructuredGrid()<br>
<br>
ugrid.SetPoints(points)<br>
<br>
for i in range(cell_count):<br>
cell = some cell created using points<br>
ugrid.InsertNextCell(cell)<br>
<br>
mapper = vtk.vtkMapper()<br>
mapper.SetInputData(ugrid)<br>
actor = vtk.vtkActor()<br>
actor.SetMapper(mapper)<br>
<br>
renderer = vtk.vtkRenderer()<br>
renderer.AddActor(actor)<br>
<br>
... in another part of the code using a custom interactor style<br>
<br>
picker = vtk.vtkPointPicker()<br>
<br>
picker.UseCellsOff() ... this causes the attribute error<br>
<br>
<br>
<br>
doing print dir(picker) shows no methods UseCellsOff or related methods<br>
<br>
Thank you for your help.<br></blockquote></div></div></div>