Unfortunately some of the locator api is pass by reference and therefore not wrapped by python.  Bastian, let us know if you run into missing methods when trying to use the cell locator in python.<br><br>Pat<br><br><div class="gmail_quote">
On Fri, May 28, 2010 at 10:31 AM, Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Andy,<br>
<br>
Bastian wants to use the cell locator in a python programmable --<br>
which won&#39;t involve any fetching.<br>
<br>
Bastian,<br>
You can create a cell locator in your programmable filter simply by:<br>
<br>
locator = vtk.vtkCellLocator()<br>
<font color="#888888"><br>
<br>
Utkarsh<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
<br>
On Fri, May 28, 2010 at 10:22 AM, Andy Bauer &lt;<a href="mailto:andy.bauer@kitware.com">andy.bauer@kitware.com</a>&gt; wrote:<br>
&gt; My guess is that you&#39;ll want to use a filter to get access to the cell<br>
&gt; locator.  What&#39;s the desired output for this?<br>
&gt;<br>
&gt; You could also fetch the data set to the client and then use the vtk wrapped<br>
&gt; classes in paraview.vtk to use the cell locator if the class has been<br>
&gt; wrapped but the fetch operation should be used with caution.<br>
&gt;<br>
&gt; Andy<br>
&gt;<br>
&gt; On Thu, May 27, 2010 at 5:55 PM, <a href="mailto:Bastil2001@yahoo.de">Bastil2001@yahoo.de</a> &lt;<a href="mailto:Bastil2001@yahoo.de">Bastil2001@yahoo.de</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Dear all,<br>
&gt;&gt;<br>
&gt;&gt; can I use vtkCellLocator from within Pyhon oder the Python programmable<br>
&gt;&gt; filter? If yes, how? Or do I need to write my own filter in c++? Thanks.<br>
&gt;&gt;<br>
&gt;&gt; Regards Bastian<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br>