<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>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.<br></div>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.<br></div>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).<br><br></div>Best,<br></div>Joachim<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-21 10:40 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">
<p></p>
<div class="m_-7551156274434885817WordSection1">
<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,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="NL"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="NL"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="NL">Menno Deij – van Rijswijk<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="NL"><u></u> <u></u></span></p>
</div>
<br>
<font style="font-family:Verdana;font-size:8pt;color:#7d7d7d;font-weight:bold">dr. ir.</font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d;font-weight:bold">
</font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d;font-weight:bold">Menno A.</font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d;font-weight:bold">
</font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d;font-weight:bold">Deij-van Rijswijk</font><font size="3" face="Segoe UI"></font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d;font-weight:bold"> |
</font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d;font-weight:bold">Researcher / Software Engineer</font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d;font-weight:bold"> |
</font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d;font-weight:bold">Maritime Simulation & Software Group</font><br>
<font style="font-family:Verdana;font-size:9pt;color:#7d7d7d;font-weight:bold">MARIN</font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d"> | T
</font><font style="font-family:Verdana;font-size:8pt;color:#7d7d7d"><a href="tel:%2B31%20317%2049%2035%2006" value="+31317493506" target="_blank">+31 317 49 35 06</a></font><font size="2" color="#7d7d7d" face="Segoe UI"></font><font style="font-family:Verdana;font-size:8pt"> |
</font><span style="font-family:Verdana;font-size:8pt"><a href="mailto:M.Deij@marin.nl" title="" style="font-family:Verdana;font-size:8pt" target="_blank"><span style="font-family:Verdana;font-size:8pt">M.Deij@marin.nl</span></a></span><font size="2" color="#7d7d7d" face="Segoe UI"></font><font style="font-family:Verdana;font-size:8pt"> |
</font><span style="font-family:Verdana;font-size:8pt"><a href="http://www.marin.nl" title="" style="font-family:Verdana;font-size:8pt" target="_blank"><span style="font-family:Verdana;font-size:8pt">www.marin.nl</span></a></span><br>
<br>
<a href="https://www.linkedin.com/company/marin" target="_blank"><img style="border:0px Solid" src="cid:image878467.PNG@97850444.46b9b3ce" alt="LinkedIn" width="16" height="16"></a> <a href="http://www.youtube.com/marinmultimedia" target="_blank"><img style="border:0px Solid" src="cid:imagead8ca6.PNG@5674c52e.43bf5c2d" alt="YouTube" width="16" height="16"></a> <a href="https://twitter.com/MARIN_nieuws" target="_blank"><img style="border:0px Solid" src="cid:imagea1e578.PNG@b5a6f461.42b26a59" alt="Twitter" width="16" height="16"></a> <a href="https://www.facebook.com/marin.wageningen" target="_blank"><img style="border:0px Solid" src="cid:imagee388fb.PNG@4c3e8f0e.43a80090" alt="Facebook" width="16" height="16"></a><br>
<font style="FONT-FAMILY:Verdana;FONT-SIZE:8pt" size="2" color="#7d7d7d" face="Verdana">MARIN news:
<font style="font-family:Verdana;font-size:8pt"><span style="font-family:Verdana;font-size:8pt"><a href="http://www.marin.nl/web/News/News-items/24th-HISWA-Symposium-on-Yacht-design-and-Construction-great-success.htm" title="" style="font-family:Verdana;font-size:8pt" target="_blank"><span style="font-family:Verdana;font-size:8pt">24th
HISWA Symposium on Yacht design and Construction great success</span></a></span></font></font>
<p></p>
<p><u></u></p>
<u></u><u></u><u></u>
</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>
Search the list archives at: <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview-<wbr>developers</a><br>
<br></blockquote></div><br></div>