Aurélien,

if you do "from paraview import vtk", to keep things on the lighter
side, we only import a limited set of VTK modules. That's why certain
filters are available and others aren't. You can always explicitly
import the VTK module of interest.
For readers and writers, you'll have to import the VTK modules
containing the concerned readers writes.

e.g.
(exactly like you're doing for reader and writers: from paraview.vtk
import vtkIOPython). For vtkCellQuality, you can do "from paraview.vtk
import vtkIOLegacy" for *.vtk readers/writers. For CellQuality, you
have to use the following:

from paraview.vtk import vtkFiltersVerdict

To determine what module a class lies in, refer to VTK doxygen to
locate the class of interest (e.g.
http://www.vtk.org/doc/nightly/html/classvtkCellQuality.html). At the
end it shows which directory the file resides in, in this case
"dox/Filters/Verdict/vtkCellQuality.h". The module can now be deduced
as "vtkFiltersVerdict".

Hope that helps.

Utkarsh


On Mon, Dec 16, 2013 at 11:25 AM, Aurélien Marsan <aur.mar...@gmail.com> wrote:
> Dear paraview users and developers,
>
> A big part of my post-processing method is based on the use of
> ProgrammableFilter.
> With that tool, I can execute Python code that I have written, just by
> importing my complete Python module within the programmable filter.
>
> Then, I use a lot of basic vtk Filters : vtkCutter, vtkThreshold, ect.
> I then import the vtk module that is included within the paraview binary
> distribution, using the command : from paraview import vtk
>
> As concerns the Readers and Writers, I use the following command
> from paraview import vtkIOPython
>
> A lot of things have changed with the new 4.0 version. In particular, I do
> not find some vtk Filters anymore.
>
> One of them is the vtkCellQuality filter, that I use in one of my code in
> order to compute the surface of 2d-cells.
> Is it possible to access it from a programmable filter ? (paraview 4.0
> binary distribution 64 bits)
>
> Many thanks,
>
> Aurélien Marsan
>
> _______________________________________________
> 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

Reply via email to