<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Thanks Andi,<br><br>I will do this. What I am planning to do is to create a scalr field with some distance information as an output.<br><br>Another issue: I want to loop oder a multi-block dataset with an iterator in a programmable filter (works) and find out the name of the currently visited block. Is that possible? Thanks.<br><br>Regards Bastian<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">Von:</span></b> pat marion &lt;pat.marion@kitware.com&gt;<br><b><span style="font-weight: bold;">An:</span></b> Utkarsh Ayachit &lt;utkarsh.ayachit@kitware.com&gt;<br><b><span style="font-weight:
 bold;">CC:</span></b> Andy Bauer &lt;andy.bauer@kitware.com&gt;; "Bastil2001@yahoo.de" &lt;Bastil2001@yahoo.de&gt;; ParaView &lt;paraview@paraview.org&gt;<br><b><span style="font-weight: bold;">Gesendet:</span></b> Freitag, den 28. Mai 2010, 16:59:07 Uhr<br><b><span style="font-weight: bold;">Betreff:</span></b> Re: [Paraview] vtkCellLocator: Python<br></font><br>Unfortunately some of the locator api is pass by reference and therefore not wrapped by python.&nbsp; 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 rel="nofollow" ymailto="mailto:utkarsh.ayachit@kitware.com" target="_blank" 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'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 rel="nofollow" ymailto="mailto:andy.bauer@kitware.com" target="_blank" href="mailto:andy.bauer@kitware.com">andy.bauer@kitware.com</a>&gt; wrote:<br>
&gt; My guess is that you'll want to use a filter to get access to the cell<br>
&gt; locator.&nbsp; What'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 rel="nofollow" ymailto="mailto:Bastil2001@yahoo.de" target="_blank" href="mailto:Bastil2001@yahoo.de">Bastil2001@yahoo.de</a> &lt;<a rel="nofollow" ymailto="mailto:Bastil2001@yahoo.de" target="_blank" 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 rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">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 rel="nofollow" target="_blank" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a rel="nofollow" target="_blank" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">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 rel="nofollow" target="_blank" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a rel="nofollow" target="_blank" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a rel="nofollow" target="_blank" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a rel="nofollow" target="_blank" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br>
</div></div>
</div><br></body></html>