[Paraview] vtkCellLocator: Python

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Fri May 28 10:31:52 EDT 2010


Andy,

Bastian wants to use the cell locator in a python programmable --
which won't involve any fetching.

Bastian,
You can create a cell locator in your programmable filter simply by:

locator = vtk.vtkCellLocator()


Utkarsh




On Fri, May 28, 2010 at 10:22 AM, Andy Bauer <andy.bauer at kitware.com> wrote:
> My guess is that you'll want to use a filter to get access to the cell
> locator.  What's the desired output for this?
>
> You could also fetch the data set to the client and then use the vtk wrapped
> classes in paraview.vtk to use the cell locator if the class has been
> wrapped but the fetch operation should be used with caution.
>
> Andy
>
> On Thu, May 27, 2010 at 5:55 PM, Bastil2001 at yahoo.de <Bastil2001 at yahoo.de>
> wrote:
>>
>> Dear all,
>>
>> can I use vtkCellLocator from within Pyhon oder the Python programmable
>> filter? If yes, how? Or do I need to write my own filter in c++? Thanks.
>>
>> Regards Bastian
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>


More information about the ParaView mailing list