<div dir="ltr"><div><div>Hi Utkarsh, <br><br>That makes exactly what I need. Thank you a lot. <br></div><br></div>Aurélien<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/16 Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Aurélien,<br>
<br>
if you do "from paraview import vtk", to keep things on the lighter<br>
side, we only import a limited set of VTK modules. That's why certain<br>
filters are available and others aren't. You can always explicitly<br>
import the VTK module of interest.<br>
For readers and writers, you'll have to import the VTK modules<br>
containing the concerned readers writes.<br>
<br>
e.g.<br>
(exactly like you're doing for reader and writers: from paraview.vtk<br>
import vtkIOPython). For vtkCellQuality, you can do "from paraview.vtk<br>
import vtkIOLegacy" for *.vtk readers/writers. For CellQuality, you<br>
have to use the following:<br>
<br>
from paraview.vtk import vtkFiltersVerdict<br>
<br>
To determine what module a class lies in, refer to VTK doxygen to<br>
locate the class of interest (e.g.<br>
<a href="http://www.vtk.org/doc/nightly/html/classvtkCellQuality.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkCellQuality.html</a>). At the<br>
end it shows which directory the file resides in, in this case<br>
"dox/Filters/Verdict/vtkCellQuality.h". The module can now be deduced<br>
as "vtkFiltersVerdict".<br>
<br>
Hope that helps.<br>
<br>
Utkarsh<br>
<div><div class="h5"><br>
<br>
On Mon, Dec 16, 2013 at 11:25 AM, Aurélien Marsan <<a href="mailto:aur.marsan@gmail.com">aur.marsan@gmail.com</a>> wrote:<br>
> Dear paraview users and developers,<br>
><br>
> A big part of my post-processing method is based on the use of<br>
> ProgrammableFilter.<br>
> With that tool, I can execute Python code that I have written, just by<br>
> importing my complete Python module within the programmable filter.<br>
><br>
> Then, I use a lot of basic vtk Filters : vtkCutter, vtkThreshold, ect.<br>
> I then import the vtk module that is included within the paraview binary<br>
> distribution, using the command : from paraview import vtk<br>
><br>
> As concerns the Readers and Writers, I use the following command<br>
> from paraview import vtkIOPython<br>
><br>
> A lot of things have changed with the new 4.0 version. In particular, I do<br>
> not find some vtk Filters anymore.<br>
><br>
> One of them is the vtkCellQuality filter, that I use in one of my code in<br>
> order to compute the surface of 2d-cells.<br>
> Is it possible to access it from a programmable filter ? (paraview 4.0<br>
> binary distribution 64 bits)<br>
><br>
> Many thanks,<br>
><br>
> Aurélien Marsan<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
</blockquote></div><br></div>