<div dir="ltr"><div>Hi Amine,<br><br></div>I don't know of a way to do it with existing filters.  The easiest way to create an example is using Python, but you should be able to translate it to C++ if you want and create a custom filter to do this (The execute method in the script becomes RequestData on a vtkPassInputTypeAlgorithm if you go this route).  Attached is a script that uses Python via the programmable filter.<span style="font-family:arial,helvetica,sans-serif">  You can find more information about the programmable filter here[1]  (I modified the script at the start of that blog post to append the number of points in the cell instead of the example array in my attached script.  You may want to adapt it further after reading the blog post).<br><br></span><span style="font-family:arial,helvetica,sans-serif">HTH,<br></span><pre style="margin:0px 0px 12px;text-indent:0px"><span style="font-family:arial,helvetica,sans-serif">Shawn<br><br>[1]: <a href="https://blog.kitware.com/vtkprogrammablefilter-aint-so-bad/">https://blog.kitware.com/vtkprogrammablefilter-aint-so-bad/</a><br></span></pre></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 8, 2017 at 2:49 AM, Amine Aboufirass <span dir="ltr"><<a href="mailto:amine.aboufirass@gmail.com" target="_blank">amine.aboufirass@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I would like to figure out the best way in Paraview to count the number of points within a cell. Preferrably a non- Python way of doing it by applying a filter of some sort or other (my Python skills are still crappy.</div><div><br></div><div>Thanks,</div><div><br>Amine</div></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>