[Paraview-developers] vtkReflectionFilter with multiple vector fields
Deij-van Rijswijk, Menno
M.Deij at marin.nl
Mon Nov 21 09:40:10 EST 2016
Hi,
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).
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.
Unfortunately, the users find problems: http://public.kitware.com/pipermail/paraview/2016-October/038152.html
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.
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.
Any insight here is very welcome :-)
Best wishes,
Menno Deij – van Rijswijk
dr. ir. Menno A. Deij-van Rijswijk | Researcher / Software Engineer | Maritime Simulation & Software Group
MARIN | T +31 317 49 35 06 | M.Deij at marin.nl<mailto:M.Deij at marin.nl> | www.marin.nl<http://www.marin.nl>
[LinkedIn]<https://www.linkedin.com/company/marin> [YouTube] <http://www.youtube.com/marinmultimedia> [Twitter] <https://twitter.com/MARIN_nieuws> [Facebook] <https://www.facebook.com/marin.wageningen>
MARIN news: 24th HISWA Symposium on Yacht design and Construction great success<http://www.marin.nl/web/News/News-items/24th-HISWA-Symposium-on-Yacht-design-and-Construction-great-success.htm>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20161121/db59f163/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image878467.PNG
Type: image/png
Size: 293 bytes
Desc: image878467.PNG
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20161121/db59f163/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imagead8ca6.PNG
Type: image/png
Size: 331 bytes
Desc: imagead8ca6.PNG
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20161121/db59f163/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imagea1e578.PNG
Type: image/png
Size: 333 bytes
Desc: imagea1e578.PNG
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20161121/db59f163/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imagee388fb.PNG
Type: image/png
Size: 253 bytes
Desc: imagee388fb.PNG
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20161121/db59f163/attachment-0003.png>
More information about the Paraview-developers
mailing list