[Paraview] Programmable filter: Use of VTK filter classes

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Jul 15 09:48:48 EDT 2013


ParaView by default only imports a minimal subset of VTK. You can
explicitly import a particular fmodule from VTK as follows:

> from paraview.vtk import vtkFiltersModeling
> v = vtkFiltersModeling.vtkSelectEnclosedPoints()


Utkarsh

On Mon, Jul 15, 2013 at 8:49 AM, John Fraser <logic_cube at btinternet.com> wrote:
> Hello,
>
> I'm using Paraview on 4.0.1.  I was under the impression that it would be
> possible to use some of the many VTK filters from a Python programmable
> filter, however I seem to only be able to instansiate some of the filters,
> for others I get the message:
>
> Traceback (most recent call last):
> File "<string>", line 21, in <module>
> File "<string>", line 4, in RequestData
> AttributeError: 'module' object has no attribute 'vtkSelectEnclosedPoints'
>
> from the following line of code:
>
> v = vtk.vtkSelectEnclosedPoints()
>
> Is it possible to use something like vtkSelectEnclosedPoints from a
> programmable filter?
>
> Thanks,
> John
>
>
> _______________________________________________
> 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