<div dir="ltr"><div>Sorry, it was a typo I mean a <b>new</b> filter. But as proposed by Utkarsh, you could modify the existing filer and share the changes through a Merge Request.<br><br></div>Best,<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b>Joachim Pouderoux</b><font size="2">, <font size="1">PhD</font></font><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="1"><i>Technical Expert - Scientific Computing Team</i></font><br><b><font size="1"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></font></b><br></blockquote>
</div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2016-11-22 9:42 GMT-04:00 Deij-van Rijswijk, Menno <span dir="ltr"><<a href="mailto:M.Deij@marin.nl" target="_blank">M.Deij@marin.nl</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-GB">
<div class="m_1789185544576476460WordSection1"><span class="">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">></span> you will have to create a un filter<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</span><p class="MsoNormal">What is an “un filter” – I have never heard of this term.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks and best wishes,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Menno Deij – van Rijswijk<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><a name="m_1789185544576476460__MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></a></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> Joachim Pouderoux [mailto:<a href="mailto:joachim.pouderoux@kitware.com" target="_blank">joachim.pouderoux@<wbr>kitware.com</a>]
<br>
<b>Sent:</b> Monday, November 21, 2016 7:56 PM<br>
<b>To:</b> Deij-van Rijswijk, Menno<br>
<b>Cc:</b> <a href="mailto:paraview-developers@paraview.org" target="_blank">paraview-developers@paraview.<wbr>org</a><br>
<b>Subject:</b> Re: [Paraview-developers] vtkReflectionFilter with multiple vector fields<u></u><u></u></span></p>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<u></u><u></u></p>
</div>
<p class="MsoNormal">Bad news is that you just can't. There is this concept of "Active Vectors", "Active Scalars" etc. on VTK datasetattributes and only one array can be marked with those tags.<u></u><u></u></p>
</div>
<p class="MsoNormal">Then some filters only performs on those attributes, while some other allow at least the user to specify which array(s) to process - this is not the case here.<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">If you want to perform reflection on all 3-components arrays, you will have to create a un filter (that will basically perform what the current one does plus perform the reflections on every arrays that have
 3-components).<u></u><u></u></p>
</div>
<p class="MsoNormal">Best,<u></u><u></u></p>
</div>
<p class="MsoNormal">Joachim<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><b>Joachim Pouderoux</b><span style="font-size:10.0pt">, </span>
<span style="font-size:7.5pt">PhD</span><u></u><u></u></p>
<p class="MsoNormal"><i><span style="font-size:7.5pt">Technical Expert - Scientific Computing Team</span></i><br>
<b><span style="font-size:7.5pt"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></span></b><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">2016-11-21 10:40 GMT-04:00 Deij-van Rijswijk, Menno <<a href="mailto:M.Deij@marin.nl" target="_blank">M.Deij@marin.nl</a>>:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">8 months ago I pushed what I thought was a fix for a problem where data read from the CGNS reader was not properly mirrored by, e.g., the vtkReflectionFilter. The data from the
 CGNS files we use contains multiple vector fields (velocity, shear stress, you name it).<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">What I did was to set the vtkDataSetAttributes::VECTORS attribute on all vector fields in the dataset (thinking that with that attribute set, the vtkReflectionFilter would work
 properly). Indeed, my (it turns out incomplete) tests showed that it did, I was happy, and my fix was merged.
<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Unfortunately, the users find problems:
<a href="http://public.kitware.com/pipermail/paraview/2016-October/038152.html" target="_blank">
http://public.kitware.com/<wbr>pipermail/paraview/2016-<wbr>October/038152.html</a> <u></u><u></u></p>
<p class="MsoNormal">Origin of the problem: my “fix”…. It turns out that if you call dsa->SetVectors(arr) on multiple arrays, only the last array on which it was called remains in the list of data arrays.
 The previous array for which this attribute was set is removed from the dataset attributes object.
<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">So, my question is: how to do this properly? Looking at the code of the vtkReflectionFilter I see that it gets “the vectors” from the dataset. Unfortunately, in our case there is
 no concept of “the vectors”. There are multiple vector fields that ALL NEED TO GET MIRRORED by the reflection filter.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Any insight here is very welcome :-)<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><span lang="NL">Best wishes,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="NL"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="NL"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="NL">Menno Deij – van Rijswijk</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="NL"> </span><u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<b><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#7d7d7d">dr. ir. Menno A. Deij-van Rijswijk | Researcher / Software Engineer | Maritime Simulation & Software Group</span></b><br>
<b><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#7d7d7d">MARIN</span></b><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#7d7d7d"> | T
<a href="tel:%2B31%20317%2049%2035%2006" target="_blank">+31 317 49 35 06</a></span><span style="font-size:8.0pt;font-family:"Verdana","sans-serif""> |
<a href="mailto:M.Deij@marin.nl" title="" target="_blank">M.Deij@marin.nl</a> | <a href="http://www.marin.nl" title="" target="_blank">
www.marin.nl</a></span><br>
<br>
<a href="https://www.linkedin.com/company/marin" target="_blank"><span style="text-decoration:none"><img id="m_1789185544576476460_x0000_i1041" src="cid:image001.png@01D244CE.A9D31360" alt="LinkedIn" width="16" border="0" height="16"></span></a> <a href="http://www.youtube.com/marinmultimedia" target="_blank"><span style="text-decoration:none"><img id="m_1789185544576476460_x0000_i1042" src="cid:image002.png@01D244CE.A9D31360" alt="YouTube" width="16" border="0" height="16"></span></a> <a href="https://twitter.com/MARIN_nieuws" target="_blank"><span style="text-decoration:none"><img id="m_1789185544576476460_x0000_i1043" src="cid:image003.png@01D244CE.A9D31360" alt="Twitter" width="16" border="0" height="16"></span></a> <a href="https://www.facebook.com/marin.wageningen" target="_blank"><span style="text-decoration:none"><img id="m_1789185544576476460_x0000_i1044" src="cid:image004.png@01D244CE.A9D31360" alt="Facebook" width="16" border="0" height="16"></span></a><br>
<span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#7d7d7d">MARIN news:
<a href="http://www.marin.nl/web/News/News-items/24th-HISWA-Symposium-on-Yacht-design-and-Construction-great-success.htm" title="" target="_blank">
24th HISWA Symposium on Yacht design and Construction great success</a></span> <u></u>
<u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=Paraview-developers" target="_blank">
http://markmail.org/search/?q=<wbr>Paraview-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview-<wbr>developers</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>