<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">&lt;<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>&gt;</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 &quot;from paraview import vtk&quot;, to keep things on the lighter<br>
side, we only import a limited set of VTK modules. That&#39;s why certain<br>
filters are available and others aren&#39;t. You can always explicitly<br>
import the VTK module of interest.<br>
For readers and writers, you&#39;ll have to import the VTK modules<br>
containing the concerned readers writes.<br>
<br>
e.g.<br>
(exactly like you&#39;re doing for reader and writers: from paraview.vtk<br>
import vtkIOPython). For vtkCellQuality, you can do &quot;from paraview.vtk<br>
import vtkIOLegacy&quot; 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>
&quot;dox/Filters/Verdict/vtkCellQuality.h&quot;. The module can now be deduced<br>
as &quot;vtkFiltersVerdict&quot;.<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 &lt;<a href="mailto:aur.marsan@gmail.com">aur.marsan@gmail.com</a>&gt; wrote:<br>
&gt; Dear paraview users and developers,<br>
&gt;<br>
&gt; A big part of my post-processing method is based on the use of<br>
&gt; ProgrammableFilter.<br>
&gt; With that tool, I can execute Python code that I have written, just by<br>
&gt; importing my complete Python module within the programmable filter.<br>
&gt;<br>
&gt; Then, I use a lot of basic vtk Filters : vtkCutter, vtkThreshold, ect.<br>
&gt; I then import the vtk module that is included within the paraview binary<br>
&gt; distribution, using the command : from paraview import vtk<br>
&gt;<br>
&gt; As concerns the Readers and Writers, I use the following command<br>
&gt; from paraview import vtkIOPython<br>
&gt;<br>
&gt; A lot of things have changed with the new 4.0 version. In particular, I do<br>
&gt; not find some vtk Filters anymore.<br>
&gt;<br>
&gt; One of them is the vtkCellQuality filter, that I use in one of my code in<br>
&gt; order to compute the surface of 2d-cells.<br>
&gt; Is it possible to access it from a programmable filter ? (paraview 4.0<br>
&gt; binary distribution 64 bits)<br>
&gt;<br>
&gt; Many thanks,<br>
&gt;<br>
&gt; Aurélien Marsan<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
</blockquote></div><br></div>