[Paraview-developers] vtkReflectionFilter with multiple vector fields

Joachim Pouderoux joachim.pouderoux at kitware.com
Thu Nov 24 10:51:08 EST 2016


Sorry, it was a typo I mean a *new* filter. But as proposed by Utkarsh, you
could modify the existing filer and share the changes through a Merge
Request.

Best,

*Joachim Pouderoux*, PhD

*Technical Expert - Scientific Computing Team*
*Kitware SAS <http://www.kitware.fr>*


2016-11-22 9:42 GMT-04:00 Deij-van Rijswijk, Menno <M.Deij at marin.nl>:

> > you will have to create a un filter
>
>
>
> What is an “un filter” – I have never heard of this term.
>
>
>
> Thanks and best wishes,
>
>
>
>
>
> Menno Deij – van Rijswijk
>
>
>
>
>
> *From:* Joachim Pouderoux [mailto:joachim.pouderoux at kitware.com]
> *Sent:* Monday, November 21, 2016 7:56 PM
> *To:* Deij-van Rijswijk, Menno
> *Cc:* paraview-developers at paraview.org
> *Subject:* Re: [Paraview-developers] vtkReflectionFilter with multiple
> vector fields
>
>
>
> Hi,
>
> 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.
>
> 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.
>
> 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).
>
> Best,
>
> Joachim
>
>
> *Joachim Pouderoux*, PhD
>
> *Technical Expert - Scientific Computing Team*
> *Kitware SAS <http://www.kitware.fr>*
>
>
>
> 2016-11-21 10:40 GMT-04:00 Deij-van Rijswijk, Menno <M.Deij at marin.nl>:
>
> 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 | www.marin.nl
>
> [image: LinkedIn] <https://www.linkedin.com/company/marin> [image:
> YouTube] <http://www.youtube.com/marinmultimedia> [image: Twitter]
> <https://twitter.com/MARIN_nieuws> [image: 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>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=
> Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20161124/e3677d69/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 293 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20161124/e3677d69/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 331 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20161124/e3677d69/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 253 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20161124/e3677d69/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 333 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20161124/e3677d69/attachment-0003.png>


More information about the Paraview-developers mailing list