<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 <pat.marion@kitware.com><br><b><span style="font-weight: bold;">An:</span></b> Utkarsh Ayachit <utkarsh.ayachit@kitware.com><br><b><span style="font-weight:
bold;">CC:</span></b> Andy Bauer <andy.bauer@kitware.com>; "Bastil2001@yahoo.de" <Bastil2001@yahoo.de>; ParaView <paraview@paraview.org><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. 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"><<a rel="nofollow" ymailto="mailto:utkarsh.ayachit@kitware.com" target="_blank" href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></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 <<a rel="nofollow" ymailto="mailto:andy.bauer@kitware.com" target="_blank" href="mailto:andy.bauer@kitware.com">andy.bauer@kitware.com</a>> wrote:<br>
> My guess is that you'll want to use a filter to get access to the cell<br>
> locator. What's the desired output for this?<br>
><br>
> You could also fetch the data set to the client and then use the vtk wrapped<br>
> classes in paraview.vtk to use the cell locator if the class has been<br>
> wrapped but the fetch operation should be used with caution.<br>
><br>
> Andy<br>
><br>
> 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> <<a rel="nofollow" ymailto="mailto:Bastil2001@yahoo.de" target="_blank" href="mailto:Bastil2001@yahoo.de">Bastil2001@yahoo.de</a>><br>
> wrote:<br>
>><br>
>> Dear all,<br>
>><br>
>> can I use vtkCellLocator from within Pyhon oder the Python programmable<br>
>> filter? If yes, how? Or do I need to write my own filter in c++? Thanks.<br>
>><br>
>> Regards Bastian<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<br>
>> <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:<br>
>> <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>
><br>
><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<br>
> <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:<br>
> <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>
><br>
><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>